diff options
| author | Daniel Baumann <daniel@debian.org> | 2009-01-10 22:01:06 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:03 +0100 |
| commit | 65e068fbd1b5265f6275fe434e1a5f44a7ceea8f (patch) | |
| tree | 5567e89d38e4f057f24f242c51ffdb62e3bd8b39 /scripts | |
| parent | 94b461ebe64c29c8e2144327d81c485550e1d7db (diff) | |
| download | live-boot-65e068fbd1b5265f6275fe434e1a5f44a7ceea8f.tar.gz live-boot-65e068fbd1b5265f6275fe434e1a5f44a7ceea8f.zip | |
Silencing grep call on /etc/passwd.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-bottom/10adduser | 2 |
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 ':') |
