# HG changeset patch # User Christophe Lincoln # Date 1304104013 -7200 # Node ID f1c0f8f8c116a09f23f24b755db1c7b7916948ec # Parent 63eaa6ed9233f5b4a101fbf34c895101638de51b bootopts.sh: remove user confug it's now in user-home.sh diff -r 63eaa6ed9233 -r f1c0f8f8c116 etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Fri Apr 29 18:24:31 2011 +0200 +++ b/etc/init.d/bootopts.sh Fri Apr 29 21:06:53 2011 +0200 @@ -13,39 +13,6 @@ EOT } -# Default user account without password (uid=1000). In live mode the option -# user=name can be used, but user must be added before home= to have home dir. -# This option is not handled by a loop and case like others and has no -# effect on an installed system. -if ! grep -q "100[0-9]:100[0-9]" /etc/passwd; then - if grep -q "user=" /proc/cmdline; then - USER=`cat /proc/cmdline | sed 's/.*user=\([^ ]*\).*/\1/'` - # Avoid usage of an existing system user or root. - if grep -q ^$USER /etc/passwd; then - USER=tux - fi - else - USER=tux - fi - echo -n "Configuring user and group: $USER..." - adduser -D -s /bin/sh -g "SliTaz User" -G users -h /home/$USER $USER - passwd -d $USER >/dev/null - status - # Audio and cdrom group. - addgroup $USER audio - addgroup $USER cdrom - addgroup $USER video - addgroup $USER tty - # /home/$USER files from /etc/skel. - # make user be only read/write by user - chmod -R 700 /home/$USER - # Slim default user. - if [ -f /etc/slim.conf ]; then - sed -i s/"default_user .*"/"default_user $USER"/\ - /etc/slim.conf - fi -fi - # Parse /proc/cmdline for boot options. echo "Parsing kernel cmdline for SliTaz live options... "