X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F21-usersetup;h=ac63a8d7b8785fb34b43d25e6e6047c26dac1bb5;hb=7477e438623f7581965a95d82cba282e38fdeb6e;hp=68f110b101e9a70ca91a536ebeab94cd58619517;hpb=9dafaad2fe959f195d68a38655f60d00ee028256;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup index 68f110b..ac63a8d 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup @@ -8,11 +8,7 @@ set -u set -e - -USERNAME='' -[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf -[ -n "$GRML_LIVE_LOCAL_CONFIG" ] && . "$GRML_LIVE_LOCAL_CONFIG" -[ -n "$USERNAME" ] || USERNAME=grml +. "$GRML_LIVE_CONFIG" if grep -q "$USERNAME:x:1000" $target/etc/group ; then echo "group $USERNAME exists already, skipping" @@ -68,12 +64,6 @@ add_user_to_group voice sed -i 's/^root::/root:*:/' $target/etc/shadow sed -i "s/^$USERNAME:!:/$USERNAME:*:/" $target/etc/shadow -# make sure users can log in on consoles 4, 5 and 6 if username != grml: -if [ "$USERNAME" != "grml" ] ; then - sed -i "s/-u grml -g grml --autologin grml/-u ${USERNAME} -g ${USERNAME} --autologin ${USERNAME}/" \ - $target/etc/inittab -fi - if [ -r $target/bin/zsh ] ; then $ROOTCMD chsh -s /bin/zsh root $ROOTCMD chsh -s /bin/zsh $USERNAME