Selaa lähdekoodia

Password file

Bob Mottram 9 vuotta sitten
vanhempi
commit
11ea8d45a7
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2
    3
      src/freedombone-image-customise

+ 2
- 3
src/freedombone-image-customise Näytä tiedosto

253
 EOF
253
 EOF
254
     # change the password for the admin user
254
     # change the password for the admin user
255
     echo -n "        echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
255
     echo -n "        echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
256
-    echo -n '$(cat /home/'  >> $rootdir/root/.bashrc
257
-    echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> $rootdir/root/.bashrc
256
+    echo -n '$(cat ~/login.txt)"|chpasswd' >> $rootdir/root/.bashrc
258
 
257
 
259
     # Remove the initial setup files
258
     # Remove the initial setup files
260
     echo "        rm /root/.initial_setup" >> $rootdir/root/.bashrc
259
     echo "        rm /root/.initial_setup" >> $rootdir/root/.bashrc
261
     echo "        rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
260
     echo "        rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
262
-    echo "        shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/root/.bashrc
261
+    echo "        shred -zu ~/login.txt" >> $rootdir/root/.bashrc
263
     cat >> $rootdir/root/.bashrc <<EOF
262
     cat >> $rootdir/root/.bashrc <<EOF
264
     fi
263
     fi
265
     exit
264
     exit