From e50449a9946d2a32b5287f119266af7d01632baf Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Mon, 30 Jun 2014 00:13:04 +0400 Subject: [PATCH] Adding android_nvram group to the touch image --- debian/changelog | 6 ++++++ .../hooks/02-add_user_to_groups.chroot | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 73a7ade7..93479195 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.221) UNRELEASED; urgency=medium + + * Adding android_nvram group to the touch image + + -- Ricardo Salveti de Araujo Mon, 30 Jun 2014 00:12:43 +0400 + livecd-rootfs (2.220) utopic; urgency=medium [ Alfonso Sanchez-Beato (email Canonical) ] diff --git a/live-build/ubuntu-touch/hooks/02-add_user_to_groups.chroot b/live-build/ubuntu-touch/hooks/02-add_user_to_groups.chroot index 577e492c..7d0d3ec7 100755 --- a/live-build/ubuntu-touch/hooks/02-add_user_to_groups.chroot +++ b/live-build/ubuntu-touch/hooks/02-add_user_to_groups.chroot @@ -2,7 +2,7 @@ USER=phablet -DEFGROUPS="tty,sudo,adm,dialout,cdrom,plugdev,audio,dip,video,gps,radio,bluetooth,android_net,android_net2,android_net3,android_graphics,android_input,sdcard_rw,android_media" +DEFGROUPS="tty,sudo,adm,dialout,cdrom,plugdev,audio,dip,video,gps,radio,bluetooth,android_net,android_net2,android_net3,android_graphics,android_input,sdcard_rw,android_media,android_nvram" /bin/egrep -i "^audio:" /etc/group if [ $? -eq 0 ]; then @@ -79,10 +79,17 @@ else fi /bin/egrep -i "^android_media:" /etc/group if [ $? -eq 0 ]; then - echo "User android_media exists in /etc/group" + echo "User android_media exists in /etc/group" else - echo "User android_media does not exist in /etc group -- must create" - groupadd -g 1013 android_media + echo "User android_media does not exist in /etc group -- must create" + groupadd -g 1013 android_media +fi +/bin/egrep -i "^android_nvram:" /etc/group +if [ $? -eq 0 ]; then + echo "User android_nvram exists in /etc/group" +else + echo "User android_nvram does not exist in /etc group -- must create" + groupadd -g 9997 android_nvram fi echo "I: add $USER to ($DEFGROUPS) groups"