X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F10adduser;h=92950707e772c38d40988cb679865cee1f676d47;hb=be6b1ff8961f46a2bf51811bdd536c3d90239027;hp=4c0fe8013958984ce0be03bc28a41a46ea9cf1d6;hpb=d60c0ff85eddfa581c19df3eaf30f4eaaaa18943;p=live-boot-grml.git diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser index 4c0fe80..9295070 100755 --- a/scripts/live-bottom/10adduser +++ b/scripts/live-bottom/10adduser @@ -58,7 +58,7 @@ set passwd/username set passwd/user-uid EOF -if ! grep "${USERNAME}" /root/etc/passwd +if ! grep -qs "${USERNAME}" /root/etc/passwd then echo "The default user (${USERNAME}) is not present," first_user=$(grep '^[^:]*:[^:]*:[12]\?[0-9][0-9][0-9][0-9]:' /root/etc/passwd | head -1 | cut -f1 -d ':')