summarylogtreecommitdiffstats
path: root/numlock_hook
diff options
context:
space:
mode:
Diffstat (limited to 'numlock_hook')
-rw-r--r--numlock_hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/numlock_hook b/numlock_hook
new file mode 100644
index 00000000000..04991283c71
--- /dev/null
+++ b/numlock_hook
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+run_hook ()
+{
+ INITTY=/dev/tty[1-6]
+ for tty in $INITTY; do
+ /usr/bin/setleds -D +num < $tty
+ done
+}