slitaz-boot-scripts rev 333
bootopts.sh: fix tux user detection
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 31 15:21:55 2013 +0200 (2013-05-31) |
parents | 1f4bcf5a8878 |
children | 5195a3bc63bf |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Wed Mar 13 16:58:26 2013 +0100 1.2 +++ b/etc/init.d/bootopts.sh Fri May 31 15:21:55 2013 +0200 1.3 @@ -155,7 +155,7 @@ 1.4 # user=name can be used, but user must be added before home= to have home dir. 1.5 # This option is not handled by a loop and case like others and has no 1.6 # effect on an installed system. 1.7 -if ! grep -q "100[0-9]:100[0-9]" /etc/passwd; then 1.8 +if ! grep -q "100[0-9]:100" /etc/passwd; then 1.9 if fgrep -q "user=" /proc/cmdline; then 1.10 USER=$(cat /proc/cmdline | sed 's/.*user=\([^ ]*\).*/\1/') 1.11 # Avoid usage of an existing system user or root.