diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-07-06 16:28:32 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-07-06 16:28:32 -0300 |
commit | ff3261a81eb822505f72b48b9fb509adb0073eba (patch) | |
tree | 2b0a048ad23d6f1a8c7b5e3f19efd43b35dc2224 /libre/virtualbox-libre/vboxbuild | |
parent | af451133000a45079d3731926e63fc4c26560735 (diff) | |
download | abslibre-ff3261a81eb822505f72b48b9fb509adb0073eba.tar.gz abslibre-ff3261a81eb822505f72b48b9fb509adb0073eba.tar.bz2 abslibre-ff3261a81eb822505f72b48b9fb509adb0073eba.zip |
virtualbox-libre-4.1.18-2: updating revision due kernel changed modules folder from /lib to /usr/lib
Diffstat (limited to 'libre/virtualbox-libre/vboxbuild')
-rw-r--r-- | libre/virtualbox-libre/vboxbuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/libre/virtualbox-libre/vboxbuild b/libre/virtualbox-libre/vboxbuild index 4bc8e0c9d..350d0c6ad 100644 --- a/libre/virtualbox-libre/vboxbuild +++ b/libre/virtualbox-libre/vboxbuild @@ -1,13 +1,23 @@ #!/bin/bash -. /etc/rc.conf -. /etc/rc.d/functions . /etc/vbox/vbox.cfg MODLIST=() LOG="/var/log/vbox-install.log" >| "$LOG" +stat_busy() { + printf '==> %s ... ' "$1" +} + +stat_done() { + echo 'done' +} + +stat_fail() { + echo 'failed' +} + if [[ $INSTALL_DIR ]]; then VBOXMANAGE=$INSTALL_DIR/VBoxManage BUILDVBOXDRV=$INSTALL_DIR/src/vboxdrv/build_in_tmp @@ -29,7 +39,7 @@ if (( ${#MODLIST[*]} )); then modprobe -ar "${MODLIST[@]}" && stat_done || stat_fail fi -for kdir in /lib/modules/[2-3]*; do +for kdir in /usr/lib/modules/[2-3]*; do if [[ ! -d $kdir/kernel ]]; then # found a stale kernel mods=("$kdir/extramodules"{drv,netadp,netflt,pci}.ko*) @@ -51,8 +61,8 @@ if (( ! $# )); then fi for kernver; do - export KERN_DIR=/lib/modules/$kernver/build - export MODULE_DIR=/lib/modules/$kernver/extramodules + export KERN_DIR=/usr/lib/modules/$kernver/build + export MODULE_DIR=/usr/lib/modules/$kernver/extramodules if [[ ! -d $KERN_DIR ]]; then printf "error: \`%s' does not appear to be a valid kernel build directory.\n" \ "$KERN_DIR" |