104 lines
2.7 KiB
Bash
104 lines
2.7 KiB
Bash
#!/bin/sh
|
|
# $Id: rc.en,v 1.2 1998/09/26 17:27:19 abial Exp $
|
|
############################################
|
|
### Special setup for one floppy PICOBSD ###
|
|
### THIS IS NOT THE NORMAL /etc/rc !!!!! ###
|
|
############################################
|
|
mount -a -t nonfs
|
|
if [ -f /etc/rc.conf ]; then
|
|
. /etc/rc.conf
|
|
fi
|
|
# start up the initial network configuration.
|
|
if [ -f /etc/rc.network ]; then
|
|
. /etc/rc.network
|
|
network_pass1
|
|
fi
|
|
# clean up left-over files
|
|
if [ -n "$network_pass1_done" ]; then
|
|
network_pass2
|
|
fi
|
|
if [ -n "$network_pass2_done" ]; then
|
|
network_pass3
|
|
fi
|
|
|
|
# stdin must be redirected because it might be for a serial console
|
|
kbddev=/dev/ttyv0
|
|
viddev=/dev/ttyv0
|
|
|
|
echo -n "Configuring console:"
|
|
|
|
# keymap
|
|
if [ "X${keymap}" != X"NO" ]; then
|
|
echo -n ' keymap'; kbdcontrol < ${kbddev} -l /usr/share/syscons/${keymap}
|
|
fi
|
|
|
|
# keyrate
|
|
if [ "X${keyrate}" != X"NO" ]; then
|
|
echo -n ' keyrate'; kbdcontrol < ${kbddev} -r ${keyrate}
|
|
fi
|
|
|
|
# keybell
|
|
if [ "X${keybell}" != X"NO" ]; then
|
|
echo -n ' keybell'; kbdcontrol < ${kbddev} -b ${keybell}
|
|
fi
|
|
|
|
# change function keys
|
|
if [ "X${keychange}" != X"NO" ]; then
|
|
echo -n " keychange"
|
|
set - ${keychange}
|
|
while [ $# -gt 0 ]
|
|
do
|
|
kbdcontrol < ${kbddev} -f "$1" "$2"
|
|
shift; shift
|
|
done
|
|
fi
|
|
|
|
# cursor type
|
|
if [ "X${cursor}" != X"NO" ]; then
|
|
echo -n ' cursor'; vidcontrol < ${viddev} -c ${cursor}
|
|
fi
|
|
|
|
# font 8x16
|
|
if [ "X${font8x16}" != X"NO" ]; then
|
|
echo -n ' font8x16'; vidcontrol < ${viddev} -f 8x16 /usr/share/syscons/${font8x16}
|
|
fi
|
|
|
|
# font 8x14
|
|
if [ "X${font8x14}" != X"NO" ]; then
|
|
echo -n ' font8x14'; vidcontrol < ${viddev} -f 8x14 /usr/share/syscons/${font8x14}
|
|
fi
|
|
|
|
# font 8x8
|
|
if [ "X${font8x8}" != X"NO" ]; then
|
|
echo -n ' font8x8'; vidcontrol < ${viddev} -f 8x8 /usr/share/syscons/${font8x8}
|
|
fi
|
|
|
|
# blank time
|
|
if [ "X${blanktime}" != X"NO" ]; then
|
|
echo -n ' blanktime'; vidcontrol < ${viddev} -t ${blanktime}
|
|
fi
|
|
|
|
# mouse daemon
|
|
if [ "X${moused_enable}" = X"YES" ] ; then
|
|
echo -n ' moused'
|
|
moused ${moused_flags} -p ${moused_port} -t ${moused_type}
|
|
vidcontrol <${viddev} -m on
|
|
fi
|
|
|
|
echo ''
|
|
echo ''
|
|
echo ''
|
|
echo '+---------- PicoBSD @VER@ (DIALUP) -------------+'
|
|
echo '| |'
|
|
echo '| Log in as "root" (no password). |'
|
|
echo '| |'
|
|
echo '| This version of PicoBSD is fully under |'
|
|
echo '| BSD license (except for SSH). For more |'
|
|
echo '| details see http://www.freebsd.org/~picobsd, |'
|
|
echo '| or contact the author. |'
|
|
echo '| |'
|
|
echo '| abial@freebsd.org |'
|
|
echo '| |'
|
|
echo '+----------------------------------------------+'
|
|
exit 0
|