go-video.sh 483 B

12345678910111213141516
  1. #!/bin/sh
  2. # Start font server if freetype is available
  3. if stat -Lq /usr/lib/libfreetype.so then font-server
  4. if empty? "$1" then export WIDTH=1024 else export WIDTH="$1"
  5. if empty? "$2" then export HEIGHT=768 else export HEIGHT="$2"
  6. # Switch to graphics mode
  7. if not set-resolution --initialize auto $WIDTH $HEIGHT then exec sh -c "echo 'Failed to set video mode, bailing.'; exit 1"
  8. # Tell the terminal to pause input
  9. killall -s USR2 terminal-vga
  10. # Start the compositor
  11. compositor