El día Wednesday, October 29, 2008 a las 09:43:42AM +0000, Alastair Johnson
escribió:
> /etc/init.d/gpsd is a fair place to do it, but it may be overwritten if
> you update the gpsd package. I used to use a pair of scripts to start
> and stop bluetooth under 2007.2 but they should still work. You could
> always combine them with a check on the current power state to make it
> toggle, which would be better if you want to add a .desktop file.
...
There is a bug in the script /etc/init.d/gpsd: When it wants to stop the
gpsd daemon it uses:
killall gpsd
which kills the daemon and the script itself:
# /etc/init.d/gpsd stop
Shutting down gpsd: Terminated
I have renamed this script to /etc/init.d/gpsd.sh and now it works fine
and as well powers down the card writing 0 into the device file;
matthias
--
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows
_______________________________________________
Openmoko community mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/community