From 4efa028fc82176689995f24a217cd0cc56668637 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 30 Jan 2010 01:11:15 +0100 Subject: update Signed-off-by: Florian Pritz --- vhba-module/vhba-module.install | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'vhba-module/vhba-module.install') diff --git a/vhba-module/vhba-module.install b/vhba-module/vhba-module.install index 4f7e460..422ff82 100644 --- a/vhba-module/vhba-module.install +++ b/vhba-module/vhba-module.install @@ -1,19 +1,16 @@ -# Copied/modified from frandom.install - -# arg 1: the new package version -# arg 2: the old package version - -post_install () { +post_install() { echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot." echo ">> This module needs to be recompiled for every kernel version upgrade." - depmod -a + KERNEL_VERSION='2.6.32-ARCH' + depmod $KERNEL_VERSION > /dev/null 2>&1 } -pre_remove () { - rmmod vhba 2> /dev/null +post_upgrade() { + post_install } -post_remove () { - depmod -a +post_remove() { + KERNEL_VERSION='2.6.32-ARCH' + depmod $KERNEL_VERSION > /dev/null 2>&1 } -- cgit v1.2.3-24-g4f1b