projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b461e
)
Silencing grep call on /etc/passwd.
author
Daniel Baumann
<daniel@debian.org>
Sat, 10 Jan 2009 21:01:06 +0000
(22:01 +0100)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:48:03 +0000
(17:48 +0100)
scripts/live-bottom/10adduser
patch
|
blob
|
history
diff --git
a/scripts/live-bottom/10adduser
b/scripts/live-bottom/10adduser
index
4c0fe80
..
9295070
100755
(executable)
--- 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 ':')