Subversion Repositories livecd

Rev

Rev 368 | Rev 378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 368 Rev 369
Line 354... Line 354...
354
 
354
 
355
### set password
355
### set password
356
if [ "\\\$PW" ]; then
356
if [ "\\\$PW" ]; then
357
    echo \\\$PW | passwd --stdin root >/dev/null
357
    echo \\\$PW | passwd --stdin root >/dev/null
358
    echo \\\$PW | passwd --stdin \\\$LIVECD_USER >/dev/null
358
    echo \\\$PW | passwd --stdin \\\$LIVECD_USER >/dev/null
-
 
359
else
-
 
360
    # set empty password
-
 
361
    sed -i "s|^root:[^:]*:|root::|"                       /etc/shadow
-
 
362
    sed -i "s|^\\\$LIVECD_USER:[^:]*:|\\\$LIVECD_USER::|" /etc/shadow
359
fi
363
fi
360
 
364
 
361
### enable auto-login
365
### enable auto-login
362
if [ ! "\\\$( cmdline_parameter noautologin )" ]; then
366
if [ ! "\\\$( cmdline_parameter noautologin )" ]; then
363
    cat >> /etc/gdm/custom.conf << FOE
367
    cat >> /etc/gdm/custom.conf << FOE