fix
This commit is contained in:
parent
8449ae40ab
commit
c9decbc73d
@ -27,8 +27,8 @@
|
|||||||
########################
|
########################
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
ARGET='/install'
|
TARGET='/install'
|
||||||
kdir $TARGET
|
mkdir $TARGET
|
||||||
######################################
|
######################################
|
||||||
echo
|
echo
|
||||||
HARD_DISK=$2
|
HARD_DISK=$2
|
||||||
@ -95,6 +95,9 @@ hibernate-setup() {
|
|||||||
echo "HibernateDelaySec=300" >>/etc/systemd/sleep.conf
|
echo "HibernateDelaySec=300" >>/etc/systemd/sleep.conf
|
||||||
echo "HandleLidSwitch=suspend-then-hibernate" >>/etc/systemd/logind.conf
|
echo "HandleLidSwitch=suspend-then-hibernate" >>/etc/systemd/logind.conf
|
||||||
echo "HandleLidSwitchExternalPower=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() {
|
create-os-snapshots() {
|
||||||
|
Loading…
Reference in New Issue
Block a user