From: Daniel Baumann Date: Sat, 10 Jan 2009 21:01:06 +0000 (+0100) Subject: Silencing grep call on /etc/passwd. X-Git-Tag: debian/2.0.15-1~374 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=65e068fbd1b5265f6275fe434e1a5f44a7ceea8f;p=live-boot-grml.git Silencing grep call on /etc/passwd. --- 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 ':')