Changeset 19030 in vbox for trunk/src/VBox/Installer/linux/vboxdrv.sh.in
- Timestamp:
- Apr 20, 2009 2:18:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r18265 r19030 40 40 BUILDVBOXDRV="$INSTALL_DIR/src/vboxdrv/build_in_tmp" 41 41 BUILDVBOXNETFLT="$INSTALL_DIR/src/vboxnetflt/build_in_tmp" 42 BUILDVBOXNETADP="$INSTALL_DIR/src/vboxnetadp/build_in_tmp" 42 43 else 43 44 VBOXMANAGE="/usr/lib/%PACKAGE%/VBoxManage" 44 45 BUILDVBOXDRV="/usr/share/%PACKAGE%/src/vboxdrv/build_in_tmp" 45 46 BUILDVBOXNETFLT="/usr/share/%PACKAGE%/src/vboxnetflt/build_in_tmp" 47 BUILDVBOXNETADP="/usr/share/%PACKAGE%/src/vboxnetadp/build_in_tmp" 46 48 fi 47 49 … … 182 184 # ensure permissions 183 185 if ! chown :$GROUPNAME $DEVICE 2>/dev/null; then 186 rmmod vboxnetadp 2>/dev/null 184 187 rmmod vboxnetflt 2>/dev/null 185 188 rmmod vboxdrv 2>/dev/null … … 189 192 failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" 190 193 fi 194 if ! modprobe vboxnetadp > /dev/null 2>&1; then 195 failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why" 196 fi 191 197 succ_msg 192 198 } … … 195 201 { 196 202 begin_msg "Stopping VirtualBox kernel module" 203 if running vboxnetadp; then 204 if ! rmmod vboxnetadp 2>/dev/null; then 205 failure "Cannot unload module vboxnetadp" 206 fi 207 fi 197 208 if running vboxdrv; then 198 209 if running vboxnetflt; then … … 261 272 { 262 273 stop 274 if find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|grep -q vboxnetadp; then 275 begin_msg "Removing old VirtualBox netadp kernel module" 276 find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|xargs rm -f 2>/dev/null 277 succ_msg 278 fi 263 279 if find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|grep -q vboxnetflt; then 264 280 begin_msg "Removing old VirtualBox netflt kernel module" … … 282 298 failure "Look at $LOG to find out what went wrong" 283 299 fi 300 if ! $BUILDVBOXNETADP \ 301 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 302 --no-print-directory install >> $LOG 2>&1; then 303 failure "Look at $LOG to find out what went wrong" 304 fi 284 305 rm -f /etc/vbox/module_not_compiled 285 306 succ_msg … … 291 312 if running vboxdrv; then 292 313 if running vboxnetflt; then 293 echo "VirtualBox kernel modules (vboxdrv and vboxnetflt) are loaded." 314 if running vboxnetadp; then 315 echo "VirtualBox kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are loaded." 316 else 317 echo "VirtualBox kernel modules (vboxdrv and vboxnetflt) are loaded." 318 fi 294 319 else 295 320 echo "VirtualBox kernel module is loaded."
Note:
See TracChangeset
for help on using the changeset viewer.