瀏覽代碼

Mailbox install message

Bob Mottram 9 年之前
父節點
當前提交
af4c434ed1
共有 2 個檔案被更改,包括 10 行新增5 行删除
  1. 7
    2
      src/freedombone
  2. 3
    3
      src/freedombone-image-customise

+ 7
- 2
src/freedombone 查看文件

8420
   if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
8420
   if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
8421
       return
8421
       return
8422
   fi
8422
   fi
8423
-  EMAIL_COMPLETE_MSG='  *** Freedombone mailbox installation is complete ***'
8423
+  EMAIL_COMPLETE_MSG=$'
8424
+  *** Freedombone mailbox installation is complete ***
8425
+
8426
+      Now on your internet router forward ports
8427
+     25, 587, 465, 993 and 2222 to the freedombone
8428
+'
8424
   if grep -Fxq "import_email" $COMPLETION_FILE; then
8429
   if grep -Fxq "import_email" $COMPLETION_FILE; then
8425
       if [[ $SYSTEM_TYPE == "$VARIANT_MAILBOX" ]]; then
8430
       if [[ $SYSTEM_TYPE == "$VARIANT_MAILBOX" ]]; then
8426
           create_backup_script
8431
           create_backup_script
8433
           if [ -d $USB_MOUNT ]; then
8438
           if [ -d $USB_MOUNT ]; then
8434
               umount $USB_MOUNT
8439
               umount $USB_MOUNT
8435
               rm -rf $USB_MOUNT
8440
               rm -rf $USB_MOUNT
8436
-              echo '            You can now remove the USB drive'
8441
+              echo $'            You can now remove the USB drive'
8437
           fi
8442
           fi
8438
           exit 0
8443
           exit 0
8439
       fi
8444
       fi

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

273
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
273
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
274
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
274
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
275
     # Remove the initial setup files
275
     # Remove the initial setup files
276
-    echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
276
+    echo '            rm /root/.initial_setup' >> $rootdir/root/.bashrc
277
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
277
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
278
-    echo "            shred -zu ~/login.txt" >> $rootdir/root/.bashrc
279
-    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
278
+    echo '            shred -zu ~/login.txt' >> $rootdir/root/.bashrc
279
+    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
280
 	cat >> $rootdir/root/.bashrc <<EOF
280
 	cat >> $rootdir/root/.bashrc <<EOF
281
             reboot
281
             reboot
282
         fi
282
         fi