core/catalyst/catalyst.install

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2010-10-27 08:36:46 +08:00
2010-10-26 06:36:55 +08:00
KERNEL_VERSION=2.6.36-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 "----------------------------------------------------------------"
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)"
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 "----------------------------------------------------------------"
}