core/catalyst/catalyst.install

50 lines
1.6 KiB
Plaintext
Raw Normal View History

2010-10-27 08:36:46 +08:00
2011-02-21 06:00:09 +08:00
KERNEL_VERSION=2.6.37-CHAKRA
2010-05-25 02:00:56 +08:00
2010-10-27 08:36:46 +08:00
whisperer(){
2010-09-01 06:32:29 +08:00
echo "----------------------------------------------------------------"
2010-10-27 08:36:46 +08:00
echo "Don't forget to add fglrx into MODULES array of /etc/rc.conf"
2010-09-01 06:32:29 +08:00
echo "----------------------------------------------------------------"
2011-01-04 02:52:12 +08:00
echo "For more info and more troubleshooting visit:"
echo "http://wiki.archlinux.org/index.php/ATI_Catalyst"
echo "----------------------------------------------------------------"
2010-10-27 08:36:46 +08:00
echo ""
echo "--------------------------- == * == ----------------------------"
echo "catalyst package has been splited between:"
echo "- catalyst (module for stock kernel)"
echo "- catalyst-utils (libs and stuff)"
2011-01-04 02:52:12 +08:00
echo ""
echo "and optional:"
echo "- catalyst-hook (auto rebuilding script and source files)"
echo "- catalyst-daemon (auto rebuilding script and source files)"
echo "- catalyst-generator (generator of catalyst-{kernver} packages)"
2010-09-01 06:32:29 +08:00
echo "----------------------------------------------------------------"
2010-05-25 02:00:56 +08:00
}
2010-10-27 08:36:46 +08:00
remove_hook(){
##removing hook's entries
# remove hook fglrx
sed '/^HOOKS/s/ *fglrx//' -i /etc/mkinitcpio.conf
# remove heads
sed '/^SyncFirst/s/ *kernel26-headers//' -i /etc/pacman.conf
}
post_install() {
depmod $KERNEL_VERSION
whisperer
}
2010-05-25 02:00:56 +08:00
post_upgrade() {
2010-10-27 08:36:46 +08:00
remove_hook
depmod $KERNEL_VERSION
whisperer
2010-05-25 02:00:56 +08:00
}
post_remove() {
2010-10-27 08:36:46 +08:00
depmod $KERNEL_VERSION
echo "----------------------------------------------------------------"
echo "Don't forget to remove fglrx from MODULES array of /etc/rc.conf"
echo "----------------------------------------------------------------"
2011-01-04 02:52:12 +08:00
}