From cba4e8ab8b40471cd25be45a37ca8855bb2b8442 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Nov 2015 14:56:44 +0000 Subject: [PATCH] Tidying --- src/freedombone-image-customise | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 2755178c..24f41a5a 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -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 <> $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