wok rev 7652

Fixed post_install in virtualbox-ose again.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 15 00:09:43 2010 +0000 (2010-12-15)
parents 5e64ecd01686
children 0a217ca53bab
files virtualbox-ose/receipt
line diff
     1.1 --- a/virtualbox-ose/receipt	Tue Dec 14 21:46:05 2010 +0000
     1.2 +++ b/virtualbox-ose/receipt	Wed Dec 15 00:09:43 2010 +0000
     1.3 @@ -11,7 +11,6 @@
     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 @@ -156,7 +155,7 @@
    1.12  
    1.13  pre_remove()
    1.14  {
    1.15 -    sed -i "s/$MODULE_LIST //" $1/etc/rcS.conf
    1.16 +    sed -i "s/vboxdrv vboxnetadp vboxnetflt //" $1/etc/rcS.conf
    1.17  }
    1.18  
    1.19  post_install()
    1.20 @@ -164,7 +163,6 @@
    1.21  	KERNEL_VERSION=`grep  ^VERSION= $1/var/lib/tazpkg/installed/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.22  
    1.23  	chroot "$1/" depmod -a $KERNEL_VERSION-slitaz
    1.24 -	[ -n "$1" ] || for i in $MODULE_LIST; do modprobe $i ; done
    1.25  	grep -qs vboxdrv $1/etc/rcS.conf ||
    1.26 -	sed -i "s/LOAD_MODULES=/&$MODULE_LIST /" $1/etc/rcS.conf
    1.27 +	sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \$1/etc/rcS.conf
    1.28  }