소스 검색

Password file

Bob Mottram 9 년 전
부모
커밋
11ea8d45a7
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    3
      src/freedombone-image-customise

+ 2
- 3
src/freedombone-image-customise 파일 보기

@@ -253,13 +253,12 @@ EOF
253 253
 EOF
254 254
     # change the password for the admin user
255 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 258
     # Remove the initial setup files
260 259
     echo "        rm /root/.initial_setup" >> $rootdir/root/.bashrc
261 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 262
     cat >> $rootdir/root/.bashrc <<EOF
264 263
     fi
265 264
     exit