- Timestamp:
- May 26, 2008 8:57:54 AM (17 years ago)
- 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 154 154 155 155 vboxaddrunning() { 156 lsmod | grep -q vboxadd[^_-]156 lsmod | grep -q "vboxadd[^_-]" 157 157 } 158 158 … … 173 173 stop() { 174 174 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"; 176 176 vboxaddrunning || { 177 177 failure "VirtualBox Additions module not loaded!" -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r9096 r9104 131 131 132 132 running() { 133 lsmod | grep -q $modname[^_-]133 lsmod | grep -q "$modname[^_-]" 134 134 } 135 135 136 136 start() { 137 begin_msg "Starting VirtualBox Additions 137 begin_msg "Starting VirtualBox Additions"; 138 138 running || { 139 139 rm -f $dev || { … … 141 141 } 142 142 143 modprobe $modname || {143 modprobe $modname >/dev/null 2>&1 || { 144 144 failure "modprobe $modname failed" 145 145 } … … 158 158 fi 159 159 test -z "$maj" && { 160 rmmod $modname 160 rmmod $modname 2>/dev/null 161 161 failure "Cannot locate the VirtualBox device" 162 162 } 163 163 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 166 166 failure "Cannot create device $dev with major $maj and minor $min" 167 167 } … … 178 178 179 179 stop() { 180 begin_msg "Stopping VirtualBox Additions 180 begin_msg "Stopping VirtualBox Additions"; 181 181 if running; then 182 rmmod $modname || failure "Cannot unload module $modname"182 rmmod $modname 2>/dev/null || failure "Cannot unload module $modname" 183 183 rm -f $dev || failure "Cannot unlink $dev" 184 184 fi -
trunk/src/VBox/Additions/linux/installer/vboxvfs.sh
r9096 r9104 155 155 if umount -a -t vboxsf 2>/dev/null; then 156 156 if running; then 157 rmmod $modname || failure "Cannot unload module $modname"157 rmmod $modname 2>/dev/null || failure "Cannot unload module $modname" 158 158 fi 159 159 succ_msg
Note:
See TracChangeset
for help on using the changeset viewer.