]> git.proxmox.com Git - pve-installer.git/commitdiff
unconfigured: ifupdown is not used anymore, cope with that
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jul 2021 08:02:45 +0000 (10:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jul 2021 09:55:59 +0000 (11:55 +0200)
we already terminate everything nicely, so this should not matter..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
unconfigured.sh

index 98b8d9c6f32da97fb21d661c3e835880092fcfcf..cbdacf0c785204a0e1959f3750d74a2805525005 100755 (executable)
@@ -29,7 +29,7 @@ eject_and_reboot() {
             break
         fi
         if test -n $try; then
-            echo "unmount failed -trying again in 5 seconds"
+            echo "unmount failed - trying again in 5 seconds"
             sleep 5
         fi
     done
@@ -47,7 +47,9 @@ eject_and_reboot() {
 real_reboot() {
     trap - ERR
 
-    /etc/init.d/networking stop
+    if [[ -x /etc/init.d/networking ]]; then
+        /etc/init.d/networking stop
+    fi
 
     # stop udev (release file handles)
     /etc/init.d/udev stop