X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F21-usersetup;h=277864254ab8465b59d2cebb47b60e209e19a1dc;hp=4f7ec49039400254d643a866e2ee1ac3b5e275eb;hb=19df4611c634f48c2ea0d321083e55bd0a2eeae4;hpb=5332d22f4acc07403d4cb17d6258542703a8f8d3 diff --git a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup index 4f7ec49..2778642 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Thu Oct 18 19:47:14 CEST 2007 [mika] +# Latest change: Fri Oct 26 01:22:30 CEST 2007 [mika] ################################################################################ set -u @@ -38,8 +38,10 @@ fi sed -i 's/^root::/root:*:/' $target/etc/shadow sed -i "s/^$USERNAME:!:/$USERNAME:*:/" $target/etc/shadow -$ROOTCMD chsh -s /bin/zsh root -$ROOTCMD chsh -s /bin/zsh $USERNAME +if [ -r $target/bin/zsh ] ; then + $ROOTCMD chsh -s /bin/zsh root + $ROOTCMD chsh -s /bin/zsh $USERNAME +fi ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3