wok-current diff virtualbox-ose/receipt @ rev 19959
slim-theme-control: add compile_rules(); files processing following it.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 20 15:38:00 2017 +0300 (2017-05-20) |
parents | 25fad836dae0 |
children | 3705d68ed8f3 |
line diff
1.1 --- a/virtualbox-ose/receipt Sat May 23 21:32:28 2015 +0200 1.2 +++ b/virtualbox-ose/receipt Sat May 20 15:38:00 2017 +0300 1.3 @@ -124,19 +124,19 @@ 1.4 1.5 pre_remove() 1.6 { 1.7 - sed -i "s/vboxdrv vboxnetadp vboxnetflt //" $1/etc/rcS.conf 1.8 - chroot $1/ delgroup vboxusers 1.9 + sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf" 1.10 + chroot "$1/" delgroup vboxusers 1.11 } 1.12 1.13 post_install() 1.14 { 1.15 - #chroot $1/ udevadm control --reload 1.16 - KERNEL_VERSION=$( chroot $1/ uname -r) 1.17 - chroot $1/ depmod -a $KERNEL_VERSION 1.18 - chroot $1/ modprobe -a vboxdrv vboxnetadp vboxnetflt 1.19 - grep -qs vboxdrv $1/etc/rcS.conf || 1.20 - sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' $1/etc/rcS.conf 1.21 - grep -qs vboxuser $1/etc/group || chroot $1/ addgroup -g 199 vboxusers 1.22 + #chroot "$1/" udevadm control --reload 1.23 + KERNEL_VERSION=$( chroot "$1/" uname -r) 1.24 + chroot "$1/" depmod -a $KERNEL_VERSION 1.25 + chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt 1.26 + grep -qs vboxdrv "$1/etc/rcS.conf" || 1.27 + sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' "$1/etc/rcS.conf" 1.28 + grep -qs vboxuser "$1/etc/group" || chroot "$1/" addgroup -g 199 vboxusers 1.29 echo "add yourself to vboxusers group if you want to access" 1.30 echo "host usb devices: addgroup $USER vboxusers" 1.31 #i can't get udev to do its work