This commit is contained in:
Bob Mottram 2015-11-24 14:56:44 +00:00
parent d6d00373bc
commit cba4e8ab8b
1 changed files with 3 additions and 3 deletions

View File

@ -225,7 +225,7 @@ EOF
echo ' NEW_USER_PASSWORD=$(printf `cat ~/login.txt`)' >> $rootdir/root/.bashrc
echo ' else' >> $rootdir/root/.bashrc
echo ' ENTROPY=$(cat /proc/sys/kernel/random/entropy_avail)' >> $rootdir/root/.bashrc
echo ' if [ $ENTROPY -lt 500]; then' >> $rootdir/root/.bashrc
echo ' if [ $ENTROPY -lt 500 ]; then' >> $rootdir/root/.bashrc
echo ' echo "WARNING: The entropy available on this system is too low to generate a password"' >> $rootdir/root/.bashrc
echo ' exit 5763' >> $rootdir/root/.bashrc
echo ' fi' >> $rootdir/root/.bashrc
@ -236,11 +236,11 @@ EOF
cat >> $rootdir/root/.bashrc <<EOF
freedombone menuconfig
if [ "$?" = "0" ]; then
EOF
echo ' if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
# change the password for the admin user
echo -n " echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
echo -n '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
# Remove the initial setup files
echo " rm /root/.initial_setup" >> $rootdir/root/.bashrc