* debian/console-screen.kbd.sh: When this script is run, only the first TTY
is created, so all other TTYs have no settings. A workaround is to add
u8:23:once:/etc/init.d/console-screen.kbd.sh reload
in /etc/inittab so that this script is run again after TTYs are allocated.
If console detection does not work as expected, LIST_CONSOLES can be set
in /etc/kbd/config, it contains a space seperated list of TTY numbers to
be modified by this script.
WARNING: this is still experimental!
git-svn-id: svn://svn.debian.org/pkg-kbd/people/barbier/kbd/trunk@175 b0dfd87d-bb01-0410-bda5-c5c44f3e0e69
barbier authored 18 years ago
Michael Schutte committed 16 years ago
0 | 0 |
kbd (1.12-15) UNRELEASED; urgency=low
|
1 | |
|
2 | |
* debian/console-screen.kbd.sh: Fix LSB runtime info, as reported in #361051.
|
3 | 1 |
|
4 | 2 |
* debian/patches/getfd.diff: New patch, the getfd function now tries to
|
5 | 3 |
open /proc/self/fd/0, so that kbd_mode can be used to query or modify any
|
6 | 4 |
TTY by running kbd_mode < /dev/ttyN.
|
|
5 |
|
|
6 |
* debian/console-screen.kbd.sh: Fix LSB runtime info, as reported in #361051.
|
|
7 |
|
|
8 |
* debian/console-screen.kbd.sh: When this script is run, only the first TTY
|
|
9 |
is created, so all other TTYs have no settings. A workaround is to add
|
|
10 |
u8:23:once:/etc/init.d/console-screen.kbd.sh reload
|
|
11 |
in /etc/inittab so that this script is run again after TTYs are allocated.
|
|
12 |
If console detection does not work as expected, LIST_CONSOLES can be set
|
|
13 |
in /etc/kbd/config, it contains a space seperated list of TTY numbers to
|
|
14 |
be modified by this script.
|
|
15 |
WARNING: this is still experimental!
|
7 | 16 |
|
8 | 17 |
-- Denis Barbier <barbier@debian.org> Tue, 11 Apr 2006 00:37:44 +0200
|
9 | 18 |
|
78 | 78 |
echo .
|
79 | 79 |
fi
|
80 | 80 |
|
81 | |
NUM_CONSOLES=`fgconsole --next-available`
|
82 | |
NUM_CONSOLES=`expr ${NUM_CONSOLES} - 1`
|
83 | |
[ ${NUM_CONSOLES} -eq 1 ] && NUM_CONSOLES=6
|
|
81 |
if [ "$RUNLEVEL" = S ]; then
|
|
82 |
LIST_CONSOLES=0
|
|
83 |
elif [ -z "$LIST_CONSOLES" ]; then
|
|
84 |
# Wait for getty to provide TTYs
|
|
85 |
sleep 3
|
|
86 |
LIST_CONSOLES=`sed -e '/^ *#/d' /etc/inittab | grep 'tty[0-9]*$' | awk -F: '{printf "%s ", $1}'`
|
|
87 |
fi
|
84 | 88 |
|
85 | 89 |
# Global default font+map
|
86 | 90 |
if [ "${CONSOLE_FONT}" ]; then
|
|
88 | 92 |
[ "${CONSOLE_MAP}" ] && SETFONT_OPT="$SETFONT_OPT -m ${CONSOLE_MAP}"
|
89 | 93 |
|
90 | 94 |
# Set for the first 6 VCs (as they are allocated in /etc/inittab)
|
91 | |
for vc in `seq 0 ${NUM_CONSOLES}`
|
|
95 |
for vc in $LIST_CONSOLES
|
92 | 96 |
do
|
93 | 97 |
${SETFONT} -C ${DEVICE_PREFIX}$vc ${SETFONT_OPT} ${CONSOLE_FONT} || { echo " failed."; break; }
|
94 | 98 |
done
|
|
147 | 151 |
fi
|
148 | 152 |
CHARMAP=`LANG=$LANG LC_ALL=$LC_ALL LC_CTYPE=$LC_CTYPE locale charmap 2>/dev/null`
|
149 | 153 |
if [ "$CHARMAP" = "UTF-8" ]; then
|
150 | |
unicode_start 2> /dev/null || true
|
|
154 |
action=unicode_start
|
151 | 155 |
else
|
152 | |
unicode_stop 2> /dev/null|| true
|
153 | |
fi
|
|
156 |
action=unicode_stop
|
|
157 |
fi
|
|
158 |
for vc in $LIST_CONSOLES
|
|
159 |
do
|
|
160 |
$action < ${DEVICE_PREFIX}$vc > ${DEVICE_PREFIX}$vc 2> /dev/null || true
|
|
161 |
done
|
154 | 162 |
|
155 | 163 |
# screensaver stuff
|
156 | 164 |
setterm_args=""
|
|
188 | 196 |
|
189 | 197 |
# Allow user to remap keys on the console
|
190 | 198 |
if [ -r /etc/$PKG/remap ]; then
|
191 | |
dumpkeys < ${DEVICE_PREFIX}1 | sed -f /etc/$PKG/remap | loadkeys --quiet
|
|
199 |
dumpkeys < ${DEVICE_PREFIX}1 | sed -f /etc/$PKG/remap | loadkeys --quiet
|
192 | 200 |
fi
|
193 | 201 |
|
194 | 202 |
# Set LEDS here
|
195 | 203 |
if [ -n "$LEDS" ]; then
|
196 | |
for i in `seq 0 $NUM_CONSOLES`
|
|
204 |
for i in $LIST_CONSOLES
|
197 | 205 |
do
|
198 | 206 |
setleds -D $LEDS < $DEVICE_PREFIX$i
|
199 | 207 |
done
|
|
202 | 210 |
|
203 | 211 |
case "$1" in
|
204 | 212 |
start|reload|restart|force-reload)
|
205 | |
setup
|
206 | |
;;
|
|
213 |
setup
|
|
214 |
;;
|
207 | 215 |
stop)
|
208 | |
;;
|
|
216 |
;;
|
209 | 217 |
*)
|
210 | |
setup
|
211 | |
;;
|
|
218 |
setup
|
|
219 |
;;
|
212 | 220 |
esac
|
213 | 221 |
|
214 | 222 |
:
|