浏览代码

Message after install

Bob Mottram 9 年前
父节点
当前提交
1a98910b82
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 3
    1
      src/freedombone
  2. 3
    1
      src/freedombone-image-customise

+ 3
- 1
src/freedombone 查看文件

11946
       echo "See /home/$MY_USERNAME/README for post-installation instructions."
11946
       echo "See /home/$MY_USERNAME/README for post-installation instructions."
11947
       echo ''
11947
       echo ''
11948
   fi
11948
   fi
11949
-  reboot
11949
+  if [ ! -f $IMAGE_PASSWORD_FILE ]; then
11950
+	  reboot
11951
+  fi
11950
 }
11952
 }
11951
 
11953
 
11952
 
11954
 

+ 3
- 1
src/freedombone-image-customise 查看文件

275
     echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
275
     echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
276
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
276
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
277
     echo "            shred -zu ~/login.txt" >> $rootdir/root/.bashrc
277
     echo "            shred -zu ~/login.txt" >> $rootdir/root/.bashrc
278
-    cat >> $rootdir/root/.bashrc <<EOF
278
+    echo "            dialog --title 'Congratulations!' --msgbox '\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it' 9 50" >> $rootdir/root/.bashrc
279
+	cat >> $rootdir/root/.bashrc <<EOF
280
+            reboot
279
         fi
281
         fi
280
     fi
282
     fi
281
     exit
283
     exit