From 65e068fbd1b5265f6275fe434e1a5f44a7ceea8f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 10 Jan 2009 22:01:06 +0100 Subject: [PATCH] Silencing grep call on /etc/passwd. --- scripts/live-bottom/10adduser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ':') -- 2.1.4