mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:07:14 +08:00
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
|
|
KERNEL_VERSION=3.0-CHAKRA
|
|
|
|
|
|
whisperer(){
|
|
echo "----------------------------------------------------------------"
|
|
echo "For more info and more troubleshooting visit:"
|
|
echo "http://wiki.archlinux.org/index.php/ATI_Catalyst"
|
|
echo "----------------------------------------------------------------"
|
|
echo ""
|
|
echo "--------------------------- == * == ----------------------------"
|
|
echo "catalyst package has been splited between:"
|
|
echo "- catalyst (module for stock kernel)"
|
|
echo "- catalyst-utils (libs and stuff)"
|
|
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)"
|
|
echo "----------------------------------------------------------------"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
post_upgrade() {
|
|
remove_hook
|
|
depmod $KERNEL_VERSION
|
|
whisperer
|
|
}
|
|
|
|
post_remove() {
|
|
depmod $KERNEL_VERSION
|
|
echo "----------------------------------------------------------------"
|
|
echo "Don't forget to remove fglrx from MODULES array of /etc/rc.conf"
|
|
echo "----------------------------------------------------------------"
|
|
}
|