updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / tlp / tlp.install
blob6b4e2bfda4de331fc3c650d59bf8741f4d2c35fd
1 ## arg 1:  the new package version
2 post_install() {
3   for i in 95hdparm-apm disable_wol hal-cd-polling intel-audio-powersave laptop-mode \
4          journal-commit pcie_aspm sata_alpm sched-powersave wireless \
5          xfs_buffer; do
6     if [ -x /usr/lib/pm-utils/power.d/$i ]; then
7         ln -sf /usr/lib/tlp-pm/tlp-nop /etc/pm/power.d/$i
8     fi
9    done
11 ## arg 1:  the old package version
12 pre_remove() {
13   for i in 95hdparm-apm disable_wol hal-cd-polling intel-audio-powersave laptop-mode \
14          journal-commit pcie_aspm sata_alpm sched-powersave wireless \
15          xfs_buffer; do
16     if [ "$(readlink /etc/pm/power.d/$i)" = "/usr/lib/tlp-pm/tlp-nop" ]; then
17         rm /etc/pm/power.d/$i
18     fi
19   done