#! /bin/sh # /etc/rc.d/init.d/textmode # chkconfig: 2345 01 80 # description: Changes text screen resolution. # Jan Bobrowski . /etc/rc.d/init.d/functions MODE=96x30 [ -f /proc/fb ] && [ "`cat /proc/fb`" != "" ] && exit 2 case "$1" in start) action "Setting screen resolution: $MODE" stm -f $MODE ;; stop) ;; status) ;; restart|reload) $0 start ;; *) echo "Usage: textmode {start|restart|reload}" exit 1 esac exit 0