Create live-image for Grit OS

shutdown 460B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # Check for any virtual machines running and save them.
  3. if ! type "vboxmanage" > /dev/null; then
  4. for uuid in $( vboxmanage list runningvms | awk 'BEGIN{FS="\" "}{print $2}' )
  5. do
  6. vboxmanage controlvm $uuid savestate
  7. done
  8. fi
  9. # Kill all open applications
  10. i3-msg [class="."] kill
  11. # Pause to allow applications to save any necessary information
  12. # If they can't do it in 10 seconds their screwed.
  13. sleep 1
  14. ## Now exit i3wm
  15. #i3-msg exit