wok-next diff virtualbox-ose/receipt @ rev 7154
Fixed virtualbox-ose to depend -a when installed. Also fixed 60-vboxguest.rules to not error if 'tazpkg reconfigure udev' is done.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Nov 06 19:43:56 2010 +0000 (2010-11-06) |
parents | 28290559c8bb |
children | 730c9d6f415e |
line diff
1.1 --- a/virtualbox-ose/receipt Mon Nov 01 22:42:11 2010 +0000 1.2 +++ b/virtualbox-ose/receipt Sat Nov 06 19:43:56 2010 +0000 1.3 @@ -11,6 +11,7 @@ 1.4 TARBALL="$SOURCE-$VERSION-OSE.tar.bz2" 1.5 WEB_SITE="http://virtualbox.org/" 1.6 WGET_URL="http://download.virtualbox.org/virtualbox/$VERSION/$TARBALL" 1.7 +MODULE_LIST="vboxdrv vboxnetadp vboxnetflt" 1.8 1.9 # Rules to configure and make the package. 1.10 compile_rules() 1.11 @@ -152,3 +153,17 @@ 1.12 "$fs/etc/udev/rules.d/60-vboxguest.rules" 1.13 } 1.14 1.15 +pre_remove() 1.16 +{ 1.17 + sed -i 's/$MODULE_LIST //' $1/etc/rcS.conf 1.18 +} 1.19 + 1.20 +post_install() 1.21 +{ 1.22 + KERNEL_VERSION=`grep ^VERSION= $1/var/lib/tazpkg/installed/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.23 + 1.24 + chroot "$1/" depmod -a $KERNEL_VERSION 1.25 + [ -n "$1" ] || for i in $MODULE_LIST; do modprobe $i ; done 1.26 + grep -qs vboxdrv $1/etc/rcS.conf || 1.27 + sed -i 's/LOAD_MODULES="/&$MODULE_LIST /' $1/etc/rcS.conf 1.28 +}