summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-01-10 22:01:06 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:03 +0100
commit65e068fbd1b5265f6275fe434e1a5f44a7ceea8f (patch)
tree5567e89d38e4f057f24f242c51ffdb62e3bd8b39 /scripts
parent94b461ebe64c29c8e2144327d81c485550e1d7db (diff)
downloadlive-boot-65e068fbd1b5265f6275fe434e1a5f44a7ceea8f.tar.gz
live-boot-65e068fbd1b5265f6275fe434e1a5f44a7ceea8f.zip
Silencing grep call on /etc/passwd.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/10adduser2
1 files changed, 1 insertions, 1 deletions
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 ':')