Changeset 89145 in vbox
- Timestamp:
- May 18, 2021 4:57:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh
r89134 r89145 306 306 } 307 307 308 # Check if required modules are installed in the system and versions match. 309 setup_complete() 310 { 311 [ "$(module_available vboxdrv)" = "1" ] || return 312 [ "$(module_available vboxnetflt)" = "1" ] || return 313 [ "$(module_available vboxnetadp)" = "1" ] || return 314 315 # All modules are in place. 316 echo "1" 317 } 318 308 319 start() 309 320 { … … 321 332 fi 322 333 fi 334 335 # Check if system already has matching modules installed. 336 [ "$(setup_complete)" = "1" ] || setup 337 323 338 if ! running vboxdrv; then 324 339 if ! rm -f $DEVICE; then … … 326 341 fi 327 342 if ! $MODPROBE vboxdrv > /dev/null 2>&1; then 328 setup 329 if ! $MODPROBE vboxdrv > /dev/null 2>&1; then 330 failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why" 331 fi 343 failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why" 332 344 fi 333 345 sleep .2
Note:
See TracChangeset
for help on using the changeset viewer.