# HG changeset patch # User Christopher Rogers # Date 1292371783 0 # Node ID e00276474e4fb768821b1fe74a6fb2336c45ec79 # Parent 5e64ecd016867cfb6a4b96ef1c7b47e262d973a3 Fixed post_install in virtualbox-ose again. diff -r 5e64ecd01686 -r e00276474e4f virtualbox-ose/receipt --- a/virtualbox-ose/receipt Tue Dec 14 21:46:05 2010 +0000 +++ b/virtualbox-ose/receipt Wed Dec 15 00:09:43 2010 +0000 @@ -11,7 +11,6 @@ TARBALL="$SOURCE-$VERSION-OSE.tar.bz2" WEB_SITE="http://virtualbox.org/" WGET_URL="http://download.virtualbox.org/virtualbox/$VERSION/$TARBALL" -MODULE_LIST="vboxdrv vboxnetadp vboxnetflt" # Rules to configure and make the package. compile_rules() @@ -156,7 +155,7 @@ pre_remove() { - sed -i "s/$MODULE_LIST //" $1/etc/rcS.conf + sed -i "s/vboxdrv vboxnetadp vboxnetflt //" $1/etc/rcS.conf } post_install() @@ -164,7 +163,6 @@ KERNEL_VERSION=`grep ^VERSION= $1/var/lib/tazpkg/installed/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` chroot "$1/" depmod -a $KERNEL_VERSION-slitaz - [ -n "$1" ] || for i in $MODULE_LIST; do modprobe $i ; done grep -qs vboxdrv $1/etc/rcS.conf || - sed -i "s/LOAD_MODULES=/&$MODULE_LIST /" $1/etc/rcS.conf + sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \$1/etc/rcS.conf }