X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F10adduser;h=92950707e772c38d40988cb679865cee1f676d47;hb=d6e0a0d537016b49d88b4d9ae2d579cf740792e4;hp=4c0fe8013958984ce0be03bc28a41a46ea9cf1d6;hpb=e0a050e3bcf51cf0bb1df9490487e0619d4aa9f9;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 ':')