updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / phc-intel / phc-intel.install
blob0a33460a5c239c26ab5833e8dcd90610e90ee176
1 post_install()
3         cat << EOF
4 Run "/etc/rc.d/phc-intel setup" to build the module for current kernel.
5 You can enter the desired voltage IDs in /etc/conf.d/phc-intel.
6 Booting with nophc kernel parameter skips setting of VIDs in case of failure.
7 EOF
10 post_upgrade() {
11         if [ "$(vercmp $2 0.3.2)" -le 0 ]; then
12                 post_install
13                 depmod
14         fi
17 post_remove()
19         echo Removing built modules ...
20         rm -rf usr/src/phc-intel/
21         rm -f var/log/phc-intel.log
22         cd lib/modules/
23         for i in *; do
24                 if [ -f "$i/extramodules/phc-intel.ko" ]; then
25                         rm -f "$i/extramodules/phc-intel.ko"
26                         [ -d "$i/kernel" ] && depmod "$i"
27                 elif [ -f "$i/phc-intel.ko" ]; then
28                         rm -f "$i/phc-intel.ko"
29                         rmdir -p --ignore-fail-on-non-empty "$i"
30                 elif [ -f "$i/extra/phc-intel.ko" ]; then
31                         rm -f "$i/extra/phc-intel.ko"
32                         rmdir -p --ignore-fail-on-non-empty "$i/extra"
33                         [ -d "$i/kernel" ] && depmod "$i"
34                 fi
35         done