PKGBUILDs/extra/intel-537/intel-537.install
2009-10-09 21:23:22 -05:00

39 lines
No EOL
967 B
Text

# arg 1: the new package version
post_install() {
cat << EOF
In order to use this module you have to agree to intel's software license:
usr/share/licenses/intel537/license.txt
Else please remove the package.
EOF
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.30-ARCH
depmod -v $KERNEL_VERSION > /dev/null 2>&1
echo
echo
echo "==> NOTICE:"
echo "==> For more information about the use and config of the drivers,"
echo "==> have a look at http://wiki.archlinux.org/index.php/Intel_53x_Modem_Driver"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
rm /etc/hamregistry.bin
post_install $1
}
# arg 1: the old package version
post_remove() {
rm /etc/hamregistry.bin
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.30-ARCH
depmod -v $KERNEL_VERSION > /dev/null 2>&1
}
op=$1
shift
$op $*