VirtualBox

Changeset 9104 in vbox for trunk


Ignore:
Timestamp:
May 26, 2008 8:57:54 AM (17 years ago)
Author:
vboxsync
Message:

Linux additions kernel module loader scripts: minor cosmetical fixes

Location:
trunk/src/VBox/Additions/linux/installer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh

    r9096 r9104  
    154154
    155155vboxaddrunning() {
    156     lsmod | grep -q vboxadd[^_-]
     156    lsmod | grep -q "vboxadd[^_-]"
    157157}
    158158
     
    173173stop() {
    174174    if test -f $PIDFILE; then
    175         begin_msg "Stopping VirtualBox host to guest time synchronisation ";
     175        begin_msg "Stopping VirtualBox host to guest time synchronisation";
    176176        vboxaddrunning || {
    177177            failure "VirtualBox Additions module not loaded!"
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r9096 r9104  
    131131
    132132running() {
    133     lsmod | grep -q $modname[^_-]
     133    lsmod | grep -q "$modname[^_-]"
    134134}
    135135
    136136start() {
    137     begin_msg "Starting VirtualBox Additions ";
     137    begin_msg "Starting VirtualBox Additions";
    138138    running || {
    139139        rm -f $dev || {
     
    141141        }
    142142
    143         modprobe $modname || {
     143        modprobe $modname >/dev/null 2>&1 || {
    144144            failure "modprobe $modname failed"
    145145        }
     
    158158        fi
    159159        test -z "$maj" && {
    160             rmmod $modname
     160            rmmod $modname 2>/dev/null
    161161            failure "Cannot locate the VirtualBox device"
    162162        }
    163163
    164         mknod -m 0664 $dev c $maj $min || {
    165             rmmod $modname
     164        mknod -m 0664 $dev c $maj $min 2>/dev/null || {
     165            rmmod $modname 2>/dev/null
    166166            failure "Cannot create device $dev with major $maj and minor $min"
    167167        }
     
    178178
    179179stop() {
    180     begin_msg "Stopping VirtualBox Additions ";
     180    begin_msg "Stopping VirtualBox Additions";
    181181    if running; then
    182         rmmod $modname || failure "Cannot unload module $modname"
     182        rmmod $modname 2>/dev/null || failure "Cannot unload module $modname"
    183183        rm -f $dev || failure "Cannot unlink $dev"
    184184    fi
  • trunk/src/VBox/Additions/linux/installer/vboxvfs.sh

    r9096 r9104  
    155155    if umount -a -t vboxsf 2>/dev/null; then
    156156        if running; then
    157             rmmod $modname || failure "Cannot unload module $modname"
     157            rmmod $modname 2>/dev/null || failure "Cannot unload module $modname"
    158158        fi
    159159        succ_msg
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette