mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
a967a819db
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
27 lines
993 B
Text
27 lines
993 B
Text
Some post installation tasks need to be done like the autostarting of tlp
|
|
via an entry /etc/rc.d/rc.local, and a post-installation script mentioned
|
|
at http://linrunner.de/en/tlp/docs/tlp-developer-documentation.html.
|
|
|
|
# Disable conflicting pm-utils hooks
|
|
for i in 95hdparm-apm disable_wol hal-cd-polling intel-audio-powersave \
|
|
harddrive laptop-mode journal-commit pci_devices pcie_aspm readahead \
|
|
sata_alpm sched-powersave usb_bluetooth wireless xfs_buffer; do
|
|
if [ -x /usr/lib/pm-utils/power.d/$i ]; then
|
|
ln -sf /usr/lib/tlp-pm/tlp-nop /etc/pm/power.d/$i
|
|
fi
|
|
done
|
|
|
|
# Start the tlp service
|
|
/etc/rc.d/rc.tlp start
|
|
|
|
# Restart acpid
|
|
/etc/rc.d/rc.acpid restart
|
|
|
|
# Configure tlp to be run at startup
|
|
add "/etc/rc.d/rc.tlp start" (without quotes) to /etc/rc.d/rc.local
|
|
|
|
# Give execute permission to rc.tlp
|
|
chmod +x /etc/rc.d/rc.tlp
|
|
|
|
After removal of this package you would need to revert the above changes.
|
|
Please make sure that you stopped the TLP service before removing TLP.
|