aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-12-03 21:28:45 +0000
committerOlivier Blin <oblin@mandriva.org>2004-12-03 21:28:45 +0000
commit02627cc7c035aa7d67e9456d0751f47caef989aa (patch)
tree0222880ae550703d3240f729b0247e040322a3ed
parentb5d224ff52a0c9cb560d76cf5da2010bf4edca2d (diff)
downloadnumlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar
numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar.gz
numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar.bz2
numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar.xz
numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.zip
add nl man page, test the real lock file /var/lock/subsys/numlock (from David MacKenzie, #12558)
-rwxr-xr-xnumlock.sh8
-rw-r--r--numlock.spec8
2 files changed, 11 insertions, 5 deletions
diff --git a/numlock.sh b/numlock.sh
index 92a8962..fdccb6f 100755
--- a/numlock.sh
+++ b/numlock.sh
@@ -1,9 +1,9 @@
# Linux-Mandrake configuration.
-# ReLock the NumLock key if /etc/rc.d/init.d/numlock has been runned
-# This is needed as login reset the tty
+# ReLock the NumLock key if /etc/rc.d/init.d/numlock has been run.
+# This is needed because login resets the tty.
MY_TTY=`tty`
case $MY_TTY in
- /dev/tty[0-9]*) [ -f /etc/sysconfig/numlock ] && setleds -D +num < $MY_TTY;;
+ /dev/tty[0-9]*) [ -f /var/lock/subsys/numlock ] && setleds -D +num < $MY_TTY;;
esac
-unset MY_TTY \ No newline at end of file
+unset MY_TTY
diff --git a/numlock.spec b/numlock.spec
index bdbfd71..fd0a119 100644
--- a/numlock.spec
+++ b/numlock.spec
@@ -3,7 +3,7 @@
%define name numlock
%define version 2.0
-%define release 8mdk
+%define release 9mdk
Summary: Numlock key locker
Name: %{name}
@@ -53,6 +53,7 @@ rm -rf $RPM_BUILD_ROOT
/usr/X11R6/bin/*
/usr/X11R6/man/man1/*
/usr/X11R6/man/cs/man1/*
+/usr/X11R6/man/nl/man1/*
%lang(cs) /usr/X11R6/man/cs/man1/*
%lang(et) /usr/X11R6/man/et/man1/*
%lang(eu) /usr/X11R6/man/eu/man1/*
@@ -64,6 +65,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Dec 3 2004 Olivier Blin <blino@mandrake.org> 2.0-9mdk
+- add nl man page
+- test the real lock file /var/lock/subsys/numlock
+ (from David MacKenzie, #12558)
+
* Sat Apr 19 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.0-8mdk
- make it lib64 aware