Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ansus:KDE3
virtualbox-ose
virtualbox.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtualbox.init of Package virtualbox-ose
#! /bin/sh # # virtualbox: Starts the VirtualBox kernel module # # chkconfig: 35 30 60 # description: VirtualBox Linux kernel module # ### BEGIN INIT INFO # Provides: vboxdrv # Required-Start: $syslog # Required-Stop: $null # Default-Start: 3 5 # Default-Stop: $null # Description: VirtualBox Linux kernel module # Should-Start: dkms ### END INIT INFO # Source function library. #. /etc/init.d/functions DAEMON=virtualbox PROGNAME=VBoxSVC RETVAL=0 running() { /sbin/lsmod | grep -q vboxdrv[^_-] } start() { # Check if it is already running if ! running; then printf "Starting %s daemon: " "$DAEMON" if ! modprobe vboxdrv > /dev/null 2>&1; then printf "Loading vboxdrv module: error\n" return fi if ! modprobe vboxnetflt > /dev/null 2>&1; then printf "Loading vboxnetflt module: error\n" return fi touch /var/lock/subsys/$PROGNAME fi printf "success" echo } stop() { printf "Stopping %s daemon: " "$DAEMON" if running vboxdrv; then if running vboxnetflt; then if ! rmmod vboxnetflt 2>/dev/null; then printf "Remove module vboxnetflt: error\n" return fi fi if ! rmmod vboxdrv 2>/dev/null; then printf "Remove module vboxdrv: error\n" return fi fi echo } restart() { stop start } status() { if running; then STATUS="loaded" else STATUS="not loaded" fi printf "%s kernel module is %s\n" $DAEMON $STATUS } case "$1" in start) start ;; stop) stop ;; restart) restart ;; condrestart) if [ -f /var/lock/subsys/$PROGNAME ]; then restart fi ;; status) status ;; *) INITNAME=`basename $0` printf "Usage: %s {start|stop|restart|condrestart|status}\n" "$INITNAME" exit 1 ;; esac exit $RETVAL
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor