From 6555511b51cd0778c19f144a4b9678dd72b32b90 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Thu, 26 Mar 2020 19:18:31 -0700 Subject: Updated to 20200322 --- pinebookpro-post-install.install | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'pinebookpro-post-install.install') diff --git a/pinebookpro-post-install.install b/pinebookpro-post-install.install index 5d1f394..6e3a4c4 100644 --- a/pinebookpro-post-install.install +++ b/pinebookpro-post-install.install @@ -1,8 +1,14 @@ - post_install() { - # Edit the sleep.conf file - sed -i s/"#SuspendState=mem standby freeze"/SuspendState=freeze/g /etc/systemd/sleep.conf -} - - post_upgrade() { - post_install + post_install() { + # Enable suspend2idle + sed -i s/"#SuspendState=mem standby freeze"/"SuspendState=freeze"/g /etc/systemd/sleep.conf + + # Edit fstab + echo "LABEL=BOOT /boot vfat defaults 0 0" >> /etc/fstab + + # Enable services + systemctl enable acpid.service + + post_upgrade() { + # Enable acpid + systemctl enable acpid.service } -- cgit v1.2.1