wok-current 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 | d6292cae5538 |
children | f3454f99c1fb |
files | virtualbox-ose/receipt virtualbox-ose/stuff/60-vboxguest.rules |
line diff
1.1 --- a/virtualbox-ose/receipt Sat Nov 06 19:22:12 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 +}
2.1 --- a/virtualbox-ose/stuff/60-vboxguest.rules Sat Nov 06 19:22:12 2010 +0000 2.2 +++ b/virtualbox-ose/stuff/60-vboxguest.rules Sat Nov 06 19:43:56 2010 +0000 2.3 @@ -1,2 +1,1 @@ 2.4 -ACTION=="add", KERNEL=="vboxguest", SUBSYSTEM=="misc", OWNER="root", MODE="0600" 2.5 -ACTION=="add", KERNEL=="vboxuser", SUBSYSTEM=="misc", OWNER="root", MODE="0666" 2.6 +ACTION=="add", KERNEL=="vboxguest", GROUP="vboxusers", SUBSYSTEM=="misc", OWNER="root", MODE="0600"