Skip to content
Snippets Groups Projects
Commit cba4e8ab authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent d6d00373
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment