This commit is contained in:
Shinjitsu Ni Ikiru 2023-07-16 13:57:08 -06:00
parent 8449ae40ab
commit c9decbc73d

View File

@ -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() {