Magellan Linux

Annotation of /trunk/initscripts/sysvinit/rc/loadkeys

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1362 - (hide annotations) (download)
Sat Jun 4 21:59:37 2011 UTC (12 years, 11 months ago) by niro
File size: 540 byte(s)
-be busybox friendly
1 niro 2 #!/bin/bash
2 niro 931 # $Id$
3 niro 2
4     #%rlevels: 7:s
5     #%start: 70
6     #%stop:
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13 niro 781 source /etc/conf.d/rc
14     source ${rc_functions}
15 niro 1245 source /etc/conf.d/keymap
16 niro 2
17 niro 1245 case "$1" in
18     start)
19     rc_print "Loading keymap... [ ${KEYMAP} ]"
20 niro 1362 # be busybox compat
21     if [[ -x /sbin/loadkmap ]]
22     then
23     loadkmap < /usr/share/busybox/keymaps/${KEYMAP}.kmap
24     evaluate_retval
25     else
26     loadkeys -q ${KEYMAP}
27     evaluate_retval
28     fi
29 niro 2
30 niro 1245 update_svcstatus $1
31     splash svc_started "$(basename $0)" 0
32     ;;
33    
34     *)
35     rc_echo "Usage: $0 {start}"
36     exit 1
37     ;;
38     esac

Properties

Name Value
svn:executable *