1998-05-20 03:01:42 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-05-20 03:01:42 +00:00
|
|
|
# Do alpha specific processing
|
|
|
|
#
|
|
|
|
|
|
|
|
echo -n 'Initial rc.alpha initialization:'
|
1999-12-15 14:27:59 +00:00
|
|
|
|
|
|
|
# Start the Alpha OSF/1 binary compatibility if requested.
|
|
|
|
#
|
|
|
|
case ${osf1_enable} in
|
|
|
|
[Yy][Ee][Ss])
|
|
|
|
echo -n ' OSF/1'; osf1 > /dev/null 2>&1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1998-05-20 03:01:42 +00:00
|
|
|
echo '.'
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
####### 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
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${keymap} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n ' keymap'; kbdcontrol <${kbddev} -l ${keymap}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# keyrate
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${keyrate} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n ' keyrate'; kbdcontrol <${kbddev} -r ${keyrate}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# keybell
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${keybell} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n ' keybell'; kbdcontrol <${kbddev} -b ${keybell}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# change function keys
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${keychange} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n " keychange"
|
|
|
|
set - ${keychange}
|
1999-09-13 15:44:20 +00:00
|
|
|
while [ $# -gt 0 ]; do
|
1999-08-25 16:01:45 +00:00
|
|
|
kbdcontrol < ${kbddev} -f "$1" "$2"
|
1998-08-31 08:57:56 +00:00
|
|
|
shift; shift
|
|
|
|
done
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# cursor type
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${cursor} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1999-08-25 16:01:45 +00:00
|
|
|
echo -n ' cursor'; vidcontrol < ${viddev} -c ${cursor}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# screen mapping
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${scrnmap} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1999-08-25 16:01:45 +00:00
|
|
|
echo -n ' screen_map'; vidcontrol < ${viddev} -l ${scrnmap}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# font 8x16
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${font8x16} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1999-08-25 16:01:45 +00:00
|
|
|
echo -n ' font8x16'; vidcontrol < ${viddev} -f 8x16 ${font8x16}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# font 8x14
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${font8x14} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1999-08-25 16:01:45 +00:00
|
|
|
echo -n ' font8x14'; vidcontrol < ${viddev} -f 8x14 ${font8x14}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# font 8x8
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${font8x8} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1999-08-25 16:01:45 +00:00
|
|
|
echo -n ' font8x8'; vidcontrol < ${viddev} -f 8x8 ${font8x8}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# blank time
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${blanktime} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1999-08-25 16:01:45 +00:00
|
|
|
echo -n ' blank_time'; vidcontrol < ${viddev} -t ${blanktime}
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# screen saver
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${saver} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
;;
|
|
|
|
*)
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n ' screensaver'
|
1999-04-24 20:58:37 +00:00
|
|
|
for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do
|
|
|
|
kldunload $i
|
|
|
|
done
|
|
|
|
kldstat -v | grep -q _saver || kldload ${saver}_saver
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# mouse daemon
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
|
|
|
case ${moused_enable} in
|
|
|
|
[Yy][Ee][Ss])
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n ' moused'
|
|
|
|
moused ${moused_flags} -p ${moused_port} -t ${moused_type}
|
1999-08-25 16:01:45 +00:00
|
|
|
vidcontrol < ${viddev} -m on
|
1999-09-13 15:44:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-08-31 08:57:56 +00:00
|
|
|
|
|
|
|
# set this mode for all virtual screens
|
1999-09-13 15:44:20 +00:00
|
|
|
#
|
1999-08-25 16:01:45 +00:00
|
|
|
if [ -n "${allscreens_flags}" ] ; then
|
1998-08-31 08:57:56 +00:00
|
|
|
echo -n ' allscreens'
|
1999-09-13 15:44:20 +00:00
|
|
|
for ttyv in /dev/ttyv*; do
|
1999-08-25 16:01:45 +00:00
|
|
|
vidcontrol < ${ttyv} ${allscreens_flags}
|
1998-08-31 08:57:56 +00:00
|
|
|
done
|
|
|
|
fi
|
1999-09-13 15:44:20 +00:00
|
|
|
|
1998-08-31 08:57:56 +00:00
|
|
|
echo '.'
|