4 # Do i386 specific processing
7 echo -n 'Initial rc.i386 initialization:'
8 if [ "${apm_enable}" = "YES" -o "${apmd_enable}" = "YES" ] ; then
10 apmconf -e > /dev/null 2>&1
13 if [ "${apmd_enable}" = "YES" ] ; then
14 echo -n ' apmd'; apmd ${apmd_flags}
17 # Start the SCO binary emulation if requested.
18 if [ "${ibcs2_enable}" = "YES" ]; then
19 echo -n ' ibcs2'; ibcs2 > /dev/null 2>&1
22 # Start the Linux binary emulation if requested.
23 if [ "${linux_enable}" = "YES" ]; then
24 echo -n ' linux'; linux > /dev/null 2>&1
27 # Start the SysVR4 binary emulation if requested.
28 if [ "${svr4_enable}" = "YES" ]; then
29 echo -n ' svr4'; svr4 > /dev/null 2>&1
32 if [ "${xtend_enable}" = "YES" ]; then
33 echo -n ' xtend'; /usr/libexec/xtend
37 ##########################################################################
38 ####### Syscons section ########
39 ##########################################################################
41 # stdin must be redirected because it might be for a serial console
45 echo -n "rc.i386 configuring syscons:"
48 if [ "${keymap}" != "NO" ]; then
49 echo -n ' keymap'; kbdcontrol < ${kbddev} -l ${keymap}
53 if [ "${keyrate}" != "NO" ]; then
54 echo -n ' keyrate'; kbdcontrol < ${kbddev} -r ${keyrate}
58 if [ "${keybell}" != "NO" ]; then
59 echo -n ' keybell'; kbdcontrol < ${kbddev} -b ${keybell}
62 # change function keys
63 if [ "${keychange}" != "NO" ]; then
68 kbdcontrol <${kbddev} -f "$1" "$2"
74 if [ "${cursor}" != "NO" ]; then
75 echo -n ' cursor'; vidcontrol < ${viddev} -c ${cursor}
79 if [ "${scrnmap}" != "NO" ]; then
80 echo -n ' screen_map'; vidcontrol < ${viddev} -l ${scrnmap}
84 if [ "${font8x16}" != "NO" ]; then
85 echo -n ' font8x16'; vidcontrol < ${viddev} -f 8x16 ${font8x16}
89 if [ "${font8x14}" != "NO" ]; then
90 echo -n ' font8x14'; vidcontrol < ${viddev} -f 8x14 ${font8x14}
94 if [ "${font8x8}" != "NO" ]; then
95 echo -n ' font8x8'; vidcontrol < ${viddev} -f 8x8 ${font8x8}
99 if [ "${blanktime}" != "NO" ]; then
100 echo -n ' blank_time'; vidcontrol < ${viddev} -t ${blanktime}
104 if [ "${saver}" != "NO" ] ; then
105 echo -n ' screensaver'
106 for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do
109 kldstat -v | grep -q _saver || kldload ${saver}_saver
113 if [ "${moused_enable}" = "YES" ] ; then
115 moused ${moused_flags} -p ${moused_port} -t ${moused_type}
116 vidcontrol < ${viddev} -m on
119 # set this mode for all virtual screens
120 if [ -n "${allscreens_flags}" ] ; then
121 echo -n ' allscreens'
122 for ttyv in /dev/ttyv*
124 vidcontrol < ${ttyv} ${allscreens_flags}
129 # interrupts for /dev/random device
130 if [ "${rand_irqs}" != "NO" ] ; then
131 echo -n 'entropy IRQs:'
132 for irq in ${rand_irqs}; do
133 echo -n " ${irq}" && rndcontrol -q -s ${irq}