diff options
Diffstat (limited to 'pinebookpro-post-install.install')
-rw-r--r-- | pinebookpro-post-install.install | 20 |
1 files changed, 13 insertions, 7 deletions
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 } |