diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-03-26 19:18:31 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-03-26 19:18:31 -0700 |
commit | 6555511b51cd0778c19f144a4b9678dd72b32b90 (patch) | |
tree | 0a35e4f655b6c57fca703dc17c84eea030831c86 /pinebookpro-post-install.install | |
parent | install file, microphone commmits (diff) | |
download | pinebookpro-post-install-master.tar.xz |
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 } |