Browse Source

use "systemctl reboot" to escape stage 1

pull/1/head
Ralph Rönnquist 2 months ago
parent
commit
a4ea4155b3
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      script.sh

+ 8
- 6
script.sh View File

@@ -88,7 +88,10 @@ DIST=$DIST DE=$DE ./$(basename $0) 2
EOF
chmod a+x /etc/rc.local

;; ###### fall through to reboot at end
# Clean out unused packages and reboot
apt-get -y autoremove --purge
systemctl reboot
;;

2) # SECOND STAGE

@@ -112,9 +115,8 @@ END

[ "$DE" = "desktop" ] && apt-get -y install task-xfce-desktop

;; ###### fall through to reboot at end
# Clean out unused packages and reboot
apt-get -y autoremove --purge
reboot
;;
esac

# Clean out unused packages and reboot
apt-get -y autoremove --purge
reboot

Loading…
Cancel
Save