Codebase list kbd / b9f2ad6
* 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
2 changed file(s) with 33 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
00 kbd (1.12-15) UNRELEASED; urgency=low
1
2 * debian/console-screen.kbd.sh: Fix LSB runtime info, as reported in #361051.
31
42 * debian/patches/getfd.diff: New patch, the getfd function now tries to
53 open /proc/self/fd/0, so that kbd_mode can be used to query or modify any
64 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!
716
817 -- Denis Barbier <barbier@debian.org> Tue, 11 Apr 2006 00:37:44 +0200
918
7878 echo .
7979 fi
8080
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
8488
8589 # Global default font+map
8690 if [ "${CONSOLE_FONT}" ]; then
8892 [ "${CONSOLE_MAP}" ] && SETFONT_OPT="$SETFONT_OPT -m ${CONSOLE_MAP}"
8993
9094 # 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
9296 do
9397 ${SETFONT} -C ${DEVICE_PREFIX}$vc ${SETFONT_OPT} ${CONSOLE_FONT} || { echo " failed."; break; }
9498 done
147151 fi
148152 CHARMAP=`LANG=$LANG LC_ALL=$LC_ALL LC_CTYPE=$LC_CTYPE locale charmap 2>/dev/null`
149153 if [ "$CHARMAP" = "UTF-8" ]; then
150 unicode_start 2> /dev/null || true
154 action=unicode_start
151155 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
154162
155163 # screensaver stuff
156164 setterm_args=""
188196
189197 # Allow user to remap keys on the console
190198 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
192200 fi
193201
194202 # Set LEDS here
195203 if [ -n "$LEDS" ]; then
196 for i in `seq 0 $NUM_CONSOLES`
204 for i in $LIST_CONSOLES
197205 do
198206 setleds -D $LEDS < $DEVICE_PREFIX$i
199207 done
202210
203211 case "$1" in
204212 start|reload|restart|force-reload)
205 setup
206 ;;
213 setup
214 ;;
207215 stop)
208 ;;
216 ;;
209217 *)
210 setup
211 ;;
218 setup
219 ;;
212220 esac
213221
214222 :