Browse Source

Path correction

Bob Mottram 9 years ago
parent
commit
4ede9b7028
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      src/freedombone-image-customise

+ 8
- 8
src/freedombone-image-customise View File

@@ -195,7 +195,7 @@ create_generic_image() {
195 195
     # The presence of this file indicates that the initial
196 196
     # setup has not yet been completed
197 197
     touch $rootdir/home/$MY_USERNAME/.initial_setup
198
-    touch $rootdir/home/root/.initial_setup
198
+    touch $rootdir/root/.initial_setup
199 199
    
200 200
     cat >> $rootdir/home/$MY_USERNAME/.bashrc <<EOF
201 201
 # initial setup of the system
@@ -228,19 +228,19 @@ if [ -f ~/.initial_setup ]; then
228 228
 fi
229 229
 EOF
230 230
 
231
-    cat >> $rootdir/home/root/.bashrc <<EOF
231
+    cat >> $rootdir/root/.bashrc <<EOF
232 232
 # initial setup of the system
233 233
 if [ -f ~/.initial_setup ]; then
234 234
 EOF
235
-    echo -n "    echo \"${MY_USERNAME}:" >> /home/root/.bashrc
236
-    echo -n '$(cat /home/'  >> /home/root/.bashrc
237
-    echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> /home/root/.bashrc
238
-    cat >> $rootdir/home/root/.bashrc <<EOF
235
+    echo -n "    echo \"${MY_USERNAME}:" >> /root/.bashrc
236
+    echo -n '$(cat /home/'  >> /root/.bashrc
237
+    echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> /root/.bashrc
238
+    cat >> $rootdir/root/.bashrc <<EOF
239 239
     freedombone menuconfig
240 240
     rm ~/.initial_setup
241 241
 EOF
242
-    echo "    shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/home/root/.bashrc
243
-    cat >> $rootdir/home/root/.bashrc <<EOF
242
+    echo "    shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/root/.bashrc
243
+    cat >> $rootdir/root/.bashrc <<EOF
244 244
 fi
245 245
 EOF
246 246
 }