Re: NumLock
> On Apr 04, Rob Byrnes illuminated with a virtual pen :
> Excuse the uber-newbie question, but how can I adapt the following to the
> "Debian way"?
>
> >Place this in in your /etc/rc.d/rc.local to activate Numlock for the
> first six terminals:
> >
> >echo "Activating Numlock ..."
> >for i in 1 2 3 4 5 6; do
> > /usr/bin/setleds +num < /dev/tty${i} > /dev/null
> >done
>
create a file in /etc/init.d/ call it, say numlock ...
inside it put:
#!/bin/sh
# numlock auto-on thingy
echo "Activating Numlock ..."
for i in 1 2 3 4 5 6; do
/usr/bin/setleds +num < /dev/tty${i} > /dev/null
done
then create symlinks in /etc/rc{0,1,2,3,4,5,6}.d that point to this file.
the S indicating to init that we want to run this script when we change to
this runlevel, the number (99) indicating what order relative to all the other
scripts we want it run. 99 indicating last.
for i in 1 2 3 4 5 6;do
ln -s /etc/init.d/numlock /etc/rc$1.d/S99numlock
done
Now my question, how does one do the same with X?
/Jp...
--
Jean-Paul Blaquière || Avatar of Computational
japester@ucc.gu.uwa.edu.au || Thaumaturgy
http://japester.ucc.asn.au ||
Democracy is based on the premise that a million men are wiser than
one man. How's that again? I missed something? -- Lazarus Long
Reply to:
- References:
- NumLock
- From: Rob Byrnes <robbyrnes@ozemail.com.au>