Subversion Repositories livecd

Rev

Rev 172 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 172 Rev 193
Line 528... Line 528...
528
 
528
 
529
### first set empty password
529
### first set empty password
530
if [ ! $NOROOT ]; then
530
if [ ! $NOROOT ]; then
531
    sed -i "s|^root:.*|root::12345:0:99999:1:::|" /etc/shadow
531
    sed -i "s|^root:.*|root::12345:0:99999:1:::|" /etc/shadow
532
fi
532
fi
533
if [ ! $NOLOCAL]; then
533
if [ ! $NOLOCAL ]; then
534
    sed -i "s|^$LOCALUSER:.*|$LOCALUSER::12345:0:99999:1:::|" /etc/shadow
534
    sed -i "s|^$LOCALUSER:.*|$LOCALUSER::12345:0:99999:1:::|" /etc/shadow
535
fi
535
fi
536
 
536
 
537
### set password for root and local user
537
### set password for root and local user
538
if [ ! $NOPASSWD ]; then
538
if [ ! $NOPASSWD ]; then
Line 564... Line 564...
564
 
564
 
565
	# set password - or - set empty password
565
	# set password - or - set empty password
566
	if [ ! $NOROOT ] && [ "$PASSWD" ]; then
566
	if [ ! $NOROOT ] && [ "$PASSWD" ]; then
567
	    echo $PASSWD | passwd --stdin root >/dev/null
567
	    echo $PASSWD | passwd --stdin root >/dev/null
568
	fi
568
	fi
569
	if [ ! $NOLOCAL] && [ "$PASSWD" ]; then
569
	if [ ! $NOLOCAL ] && [ "$PASSWD" ]; then
570
	    echo $PASSWD | passwd --stdin $user >/dev/null
570
	    echo $PASSWD | passwd --stdin $user >/dev/null
571
	fi
571
	fi
572
	echo
572
	echo
573
    fi
573
    fi
574
fi
574
fi