go-video.sh: go to video mode from VGA text mode
This commit is contained in:
parent
33e29e2d21
commit
689cbd9cba
16
apps/go-video.sh
Normal file
16
apps/go-video.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start font server if freetype is available
|
||||
if stat -Lq /usr/lib/libfreetype.so then font-server
|
||||
|
||||
if empty? "$1" then export WIDTH=1024 else export WIDTH="$1"
|
||||
if empty? "$2" then export HEIGHT=768 else export HEIGHT="$2"
|
||||
|
||||
# Switch to graphics mode
|
||||
set-resolution --initialize auto $WIDTH $HEIGHT
|
||||
|
||||
# Tell the terminal to pause input
|
||||
killall -s USR2 terminal-vga
|
||||
|
||||
# Start the compositor
|
||||
compositor
|
Loading…
Reference in New Issue
Block a user