freebsd-nq/etc/etc.alpha/rc.alpha
Sheldon Hearn b68adff6b7 Style clean-up:
* All variables are now embraced: ${foo}

	* All comparisons against some value now take the form:
	  [ "${foo}" ? "value" ]
	  where ? is a comparison operator

	* All empty string tests now take the form:
	  [ -z "${foo}" ]

	* All non-empty string tests now take the form:
	  [ -n "${foo}" ]

Submitted by:	jkh
1999-08-25 16:01:45 +00:00

101 lines
2.2 KiB
Bash

#!/bin/sh -
#
# $Id: rc.alpha,v 1.3 1999/04/24 20:58:37 peter Exp $
# Do alpha specific processing
#
echo -n 'Initial rc.alpha initialization:'
echo '.'
##########################################################################
####### Syscons section ########
##########################################################################
# stdin must be redirected because it might be for a serial console
kbddev=/dev/ttyv0
viddev=/dev/ttyv0
echo -n "rc.alpha configuring syscons:"
# keymap
if [ "${keymap}" != "NO" ]; then
echo -n ' keymap'; kbdcontrol <${kbddev} -l ${keymap}
fi
# keyrate
if [ "${keyrate}" != "NO" ]; then
echo -n ' keyrate'; kbdcontrol <${kbddev} -r ${keyrate}
fi
# keybell
if [ "${keybell}" != "NO" ]; then
echo -n ' keybell'; kbdcontrol <${kbddev} -b ${keybell}
fi
# change function keys
if [ "${keychange}" != "NO" ]; then
echo -n " keychange"
set - ${keychange}
while [ $# -gt 0 ]
do
kbdcontrol < ${kbddev} -f "$1" "$2"
shift; shift
done
fi
# cursor type
if [ "${cursor}" != "NO" ]; then
echo -n ' cursor'; vidcontrol < ${viddev} -c ${cursor}
fi
# screen mapping
if [ "${scrnmap}" != "NO" ]; then
echo -n ' screen_map'; vidcontrol < ${viddev} -l ${scrnmap}
fi
# font 8x16
if [ "${font8x16}" != "NO" ]; then
echo -n ' font8x16'; vidcontrol < ${viddev} -f 8x16 ${font8x16}
fi
# font 8x14
if [ "${font8x14}" != "NO" ]; then
echo -n ' font8x14'; vidcontrol < ${viddev} -f 8x14 ${font8x14}
fi
# font 8x8
if [ "${font8x8}" != "NO" ]; then
echo -n ' font8x8'; vidcontrol < ${viddev} -f 8x8 ${font8x8}
fi
# blank time
if [ "${blanktime}" != "NO" ]; then
echo -n ' blank_time'; vidcontrol < ${viddev} -t ${blanktime}
fi
# screen saver
if [ "${saver}" != "NO" ] ; then
echo -n ' screensaver'
for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do
kldunload $i
done
kldstat -v | grep -q _saver || kldload ${saver}_saver
fi
# mouse daemon
if [ "${moused_enable}" = "YES" ] ; then
echo -n ' moused'
moused ${moused_flags} -p ${moused_port} -t ${moused_type}
vidcontrol < ${viddev} -m on
fi
# set this mode for all virtual screens
if [ -n "${allscreens_flags}" ] ; then
echo -n ' allscreens'
for ttyv in /dev/ttyv*
do
vidcontrol < ${ttyv} ${allscreens_flags}
done
fi
echo '.'