Changeset 19273 in vbox for trunk/src/VBox/Installer/linux/vboxdrv.sh.in
- Timestamp:
- Apr 30, 2009 1:45:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r19030 r19273 236 236 if [ -d /tmp/.vbox-$i-ipc ]; then 237 237 export VBOX_IPC_SOCKETID="$i" 238 VMS=`$VBOXMANAGE - nologo list runningvms2>/dev/null`238 VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*"//' 2>/dev/null` 239 239 if [ -n "$VMS" ]; then 240 240 if [ "$SHUTDOWN" = "poweroff" ]; then 241 241 begin_msg "Powering off remaining VMs" 242 242 for v in $VMS; do 243 $VBOXMANAGE - nologo controlvm $v poweroff243 $VBOXMANAGE --nologo controlvm $v poweroff 244 244 done 245 245 succ_msg … … 247 247 begin_msg "Sending ACPI power button event to remaining VMs" 248 248 for v in $VMS; do 249 $VBOXMANAGE - nologo controlvm $v acpipowerbutton249 $VBOXMANAGE --nologo controlvm $v acpipowerbutton 250 250 wait=30 251 251 done … … 254 254 begin_msg "Saving state of remaining VMs" 255 255 for v in $VMS; do 256 $VBOXMANAGE - nologo controlvm $v savestate256 $VBOXMANAGE --nologo controlvm $v savestate 257 257 done 258 258 succ_msg … … 324 324 if [ -d /tmp/.vbox-$i-ipc ]; then 325 325 export VBOX_IPC_SOCKETID="$i" 326 VMS=`$VBOXMANAGE - nologo list runningvms2>/dev/null`326 VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*"//' 2>/dev/null` 327 327 if [ -n "$VMS" ]; then 328 328 echo "The following VMs are currently running:"
Note:
See TracChangeset
for help on using the changeset viewer.