here is my /etc/init.d/gpssamp.sh
Code:
#!/bin/sh
rfcomm release 4
rfcomm connect 4
gpsd -n /dev/rfcomm4
to put it there i used
Code:
cd /etc/init.d/
sudo gedit gpssamp.sh
sudo update-rc.d gpssamp.sh defaults
update-rc.d: warning: /etc/init.d/gpssamp.sh missing LSB style header
System startup links for /etc/init.d/gpssamp.sh already exist.
sudo chmod +x gpssamp.sh
works just fine when manually started but wont do it on start
Code:
sudo /etc/init.d/gpssamp.sh
[sudo] password :
Connected /dev/rfcomm4 to 00:12:0E:80:D8:xx on channel 1
Press CTRL-C for hangup
then close terminal(bc i dont have a control key)
then i can run roadnav and it picks the reciver up
Bookmarks