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,7 +1378,7 @@ function restart_system {
1378 1378
         1) return;;
1379 1379
         255) return;;
1380 1380
     esac
1381
-    reboot
1381
+    systemctl reboot -i
1382 1382
 }
1383 1383
 
1384 1384
 function change_system_name {
@@ -1423,7 +1423,7 @@ function set_dynamic_IP {
1423 1423
         echo $'Changing to a dynamic IP address.'
1424 1424
         echo ''
1425 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 1427
     fi
1428 1428
 }
1429 1429
 
@@ -1559,7 +1559,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
1559 1559
                    --yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
1560 1560
             sel=$?
1561 1561
             case $sel in
1562
-                0) reboot;;
1562
+                0) systemctl reboot -i;;
1563 1563
             esac
1564 1564
         fi
1565 1565
     fi

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

@@ -625,7 +625,7 @@ if [ -f $MESH_INSTALL_SETUP ]; then
625 625
             rm /usr/share/images/desktop-base/desktop-background
626 626
             ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
627 627
         fi
628
-        reboot
628
+        systemctl reboot -i
629 629
     fi
630 630
 fi
631 631
 

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

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