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

Contents of /trunk/init.d/numlock

Parent Directory Parent Directory | Revision Log Revision Log


Revision 119 - (show annotations) (download)
Sat Feb 2 00:04:19 2002 UTC (17 years, 4 months ago) by azarah
File size: 394 byte(s)
Added numlock before I forget, or Woodchip actually start on it.
Woodchip: if you have already, and yours is better, just commit
          and fix ChangeLog.

Long day .. must be off to bed now ;/

1 #!/sbin/runscript
2 # Copyright 1999-2002 Gentoo Technologies, Inc.
3 # Distributed under the terms of the GNU General Public License, v2 or later
4 # $Header$
5
6
7 start() {
8 ebegin "Enabling numlock on ttys"
9 for tty in /dev/tty[1-8] ; do
10 setleds -D +num < $tty
11 done
12 eend $?
13 }
14
15 stop() {
16 ebegin "Disabling numlock on ttys"
17 for tty in /dev/tty[1-8] ; do
18 setleds -D -num < $tty
19 done
20 eend $?
21 }

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20