Browse Source

Reboot now uses systemd

Bob Mottram 7 years ago
parent
commit
cd54f26f84
3 changed files with 5 additions and 5 deletions
  1. 3
    3
      src/freedombone-controlpanel
  2. 1
    1
      src/freedombone-image-mesh
  3. 1
    1
      src/freedombone-utils-final

+ 3
- 3
src/freedombone-controlpanel View File

1378
         1) return;;
1378
         1) return;;
1379
         255) return;;
1379
         255) return;;
1380
     esac
1380
     esac
1381
-    reboot
1381
+    systemctl reboot -i
1382
 }
1382
 }
1383
 
1383
 
1384
 function change_system_name {
1384
 function change_system_name {
1423
         echo $'Changing to a dynamic IP address.'
1423
         echo $'Changing to a dynamic IP address.'
1424
         echo ''
1424
         echo ''
1425
         echo $"System is rebooting. You may need to close this terminal and log in from a new one."
1425
         echo $"System is rebooting. You may need to close this terminal and log in from a new one."
1426
-        reboot
1426
+        systemctl reboot -i
1427
     fi
1427
     fi
1428
 }
1428
 }
1429
 
1429
 
1559
                    --yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
1559
                    --yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
1560
             sel=$?
1560
             sel=$?
1561
             case $sel in
1561
             case $sel in
1562
-                0) reboot;;
1562
+                0) systemctl reboot -i;;
1563
             esac
1563
             esac
1564
         fi
1564
         fi
1565
     fi
1565
     fi

+ 1
- 1
src/freedombone-image-mesh View File

625
             rm /usr/share/images/desktop-base/desktop-background
625
             rm /usr/share/images/desktop-base/desktop-background
626
             ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
626
             ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
627
         fi
627
         fi
628
-        reboot
628
+        systemctl reboot -i
629
     fi
629
     fi
630
 fi
630
 fi
631
 
631
 

+ 1
- 1
src/freedombone-utils-final View File

83
         echo $'Turning off logging'
83
         echo $'Turning off logging'
84
         ${PROJECT_NAME}-logging off
84
         ${PROJECT_NAME}-logging off
85
         echo $'Rebooting the system'
85
         echo $'Rebooting the system'
86
-        reboot
86
+        systemctl reboot -i
87
     fi
87
     fi
88
     echo $'Turning off logging'
88
     echo $'Turning off logging'
89
     ${PROJECT_NAME}-logging off
89
     ${PROJECT_NAME}-logging off