diff --git a/debian.sh b/debian.sh index 6a67a50..39024c5 100755 --- a/debian.sh +++ b/debian.sh @@ -27,8 +27,8 @@ ######################## PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export DEBIAN_FRONTEND=noninteractive -ARGET='/install' -kdir $TARGET +TARGET='/install' +mkdir $TARGET ###################################### echo HARD_DISK=$2 @@ -95,6 +95,9 @@ hibernate-setup() { echo "HibernateDelaySec=300" >>/etc/systemd/sleep.conf echo "HandleLidSwitch=suspend-then-hibernate" >>/etc/systemd/logind.conf echo "HandleLidSwitchExternalPower=suspend-then-hibernate" >>/etc/systemd/logind.conf + unlink /usr/lib/systemd/system/systemd-suspend.service + rm -f /usr/lib/systemd/system/systemd-suspend.service + ln -s /usr/lib/systemd/system/systemd-suspend-then-hibernate.service /usr/lib/systemd/system/systemd-suspend.service } create-os-snapshots() {