diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-04-17 05:54:16 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-04-17 05:54:16 +0300 |
commit | 6f34ddd7af8b285152e8df9f17f3b592de2c7801 (patch) | |
tree | b84354ae976fbd270711ecfe784c3e146542a674 /jessie-arm64-developer | |
parent | c5d58708d6512dcab33233b468e77f35b25b788c (diff) |
jessie-arm64-*: add linaro user to bluetooth and pulse-access groups
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'jessie-arm64-developer')
-rwxr-xr-x | jessie-arm64-developer/customization/hooks/02-add_linaro_to_groups.chroot | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/jessie-arm64-developer/customization/hooks/02-add_linaro_to_groups.chroot b/jessie-arm64-developer/customization/hooks/02-add_linaro_to_groups.chroot index f3b2d4e..fb20bdd 100755 --- a/jessie-arm64-developer/customization/hooks/02-add_linaro_to_groups.chroot +++ b/jessie-arm64-developer/customization/hooks/02-add_linaro_to_groups.chroot @@ -1,6 +1,6 @@ #!/bin/sh -x -DEFGROUPS="admin,adm,dialout,cdrom,plugdev,audio,dip,video" +DEFGROUPS="admin,adm,dialout,cdrom,audio,dip,video,plugdev,bluetooth,pulse-access" /bin/egrep -i "^admin" /etc/group if [ $? -eq 0 ]; then @@ -9,6 +9,13 @@ else echo "User admin does not exists in /etc/group must create" groupadd admin fi +/bin/egrep -i "^adm" /etc/group +if [ $? -eq 0 ]; then + echo "User adm exists in /etc/group" +else + echo "User adm does not exists in /etc/group must create" + groupadd adm +fi /bin/egrep -i "^dialout" /etc/group if [ $? -eq 0 ]; then echo "User dialout exists in /etc/group" @@ -23,13 +30,6 @@ else echo "User cdrom does not exists in /etc/group must create" groupadd cdrom fi -/bin/egrep -i "^plugdev" /etc/group -if [ $? -eq 0 ]; then - echo "User plugdev exists in /etc/group" -else - echo "User plugdev does not exists in /etc/group must create" - groupadd plugdev -fi /bin/egrep -i "^audio" /etc/group if [ $? -eq 0 ]; then echo "User audio exists in /etc/group" @@ -51,12 +51,26 @@ else echo "User video does not exists in /etc/group must create" groupadd video fi -/bin/egrep -i "^adm" /etc/group +/bin/egrep -i "^plugdev" /etc/group if [ $? -eq 0 ]; then - echo "User adm exists in /etc/group" + echo "User plugdev exists in /etc/group" else - echo "User adm does not exists in /etc/group must create" - groupadd adm + echo "User plugdev does not exists in /etc/group must create" + groupadd plugdev +fi +/bin/egrep -i "^bluetooth" /etc/group +if [ $? -eq 0 ]; then + echo "User bluetooth exists in /etc/group" +else + echo "User bluetooth does not exists in /etc/group must create" + groupadd bluetooth +fi +/bin/egrep -i "^pulse-access" /etc/group +if [ $? -eq 0 ]; then + echo "User pulse-access exists in /etc/group" +else + echo "User pulse-access does not exists in /etc/group must create" + groupadd pulse-access fi echo "I: add linaro to ($DEFGROUPS) groups" |