#! /bin/sh
### BEGIN INIT INFO
# Provides:          fbset
# Required-Start:    $local_fs hostname $remote_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      
# Short-Description: Fix console position.
# Description:       Move the console to the right.
### END INIT INFO

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="Fix console position"
NAME=fbset
SCRIPTNAME=/etc/init.d/$NAME

# Read configuration variable file if it is present
#[ -r /etc/default/$NAME ] && . /etc/default/$NAME

do_start()
{
	if which fbset >/dev/null 2>&1
	then
		fbset -move right
	fi
}

case "$1" in
  start|"")
  	echo "Fixing console position with fbset.sh."
	do_start
	;;
  stop)
	;;
  restart|reload|force-reload)
  	echo "Error: argument '$1' not supported" >&2
	exit 3
	;;
  *)
  	echo "Usage: fbset.sh [start|stop]" >&2
	exit 3
	;;
esac

:

