Subversion Repositories livecd

Rev

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

Rev 84 Rev 86
Line 568... Line 568...
568
	    echo "Login as local user '$user' with this password."
568
	    echo "Login as local user '$user' with this password."
569
	    echo
569
	    echo
570
	fi
570
	fi
571
 
571
 
572
        # set password, if not yet given by $PASSWD
572
        # set password, if not yet given by $PASSWD
573
	until [ $PASSWD ]; do
-
 
574
	    echo -n "Password: "
573
	echo -n "Password: "
575
	    read -s PASSWD
574
	read -s PASSWD
576
	    echo
575
	echo
577
	done
576
 
-
 
577
	# set password, if not empty
578
	if [ ! $NOROOT ]; then
578
	if [ ! $NOROOT ] && [ "$PASSWD" ]; then
579
	    echo $PASSWD | passwd --stdin root >/dev/null
579
	    echo $PASSWD | passwd --stdin root >/dev/null
580
	fi
580
	fi
581
	if [ ! $NOLOCAL ]; then
581
	if [ ! $NOLOCAL] && [ "$PASSWD" ]; then
582
	    echo $PASSWD | passwd --stdin $user >/dev/null
582
	    echo $PASSWD | passwd --stdin $user >/dev/null
583
	fi
583
	fi
584
	echo
584
	echo
585
    fi
585
    fi
586
 
586