/[baselayout]/trunk/init.d/numlock
Gentoo

Diff of /trunk/init.d/numlock

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 143 Revision 144
10 10
11start() { 11start() {
12 ebegin "Enabling numlock on ttys" 12 ebegin "Enabling numlock on ttys"
13 for tty in /dev/tty[1-8] 13 for tty in /dev/tty[1-8]
14 do 14 do
15 setleds -D +num < $tty >/dev/null 2>&1 15 setleds -D +num < ${tty} &>/dev/null
16 done 16 done
17 eend $? 17 eend $? "Failed to enable numlock"
18} 18}
19 19
20stop() { 20stop() {
21 ebegin "Disabling numlock on ttys" 21 ebegin "Disabling numlock on ttys"
22 for tty in /dev/tty[1-8] 22 for tty in /dev/tty[1-8]
23 do 23 do
24 setleds -D -num < $tty >/dev/null 2>&1 24 setleds -D -num < ${tty} &>/dev/null
25 done 25 done
26 eend $? 26 eend $? "Failed to disable numlock"
27} 27}
28 28
29
30# vim:ts=4

Legend:
Removed from v.143  
changed lines
  Added in v.144

  ViewVC Help
Powered by ViewVC 1.1.20