[ale] help please getting script file to work

Tim Watts tim at cliftonfarm.org
Wed Feb 15 15:40:11 EST 2012


What others have said.  Also, on debian/ubuntu see man update-rc.d to
integrate this into the startup all proper-like. (Although I don't know
if they've done away with all the sysv startup style on 11.x -- they've
been migrating to that upstart thing.)


On Wed, 2012-02-15 at 13:54 -0500, Ron Frazier wrote:
> Hi all,
> 
> I need to put this script file on my desktop so I can double click it 
> after boot up to initialize my USB GPS.  I haven't studied shell scripts 
> and don't know the proper syntax to make it work.  The log_daemon_msg 
> seems to write on the screen in the /etc/init.d/ntp file, but doesn't 
> work here.  An even better approach would be to have these commands run 
> during initial ntpd startup at boot time, but I don't know how to do that.
> 
> # script file to stop ntpd, initialize the usb gps, then restart ntpd
> # Ron Frazier - 2012-02-15
> 
> # stop ntpd
> sudo "/etc/init.d/ntp stop"
> 
> # set up the com port
> log_daemon_msg "Setting /dev/ttyUSB0 comm parameters."
> sudo "stty -F /dev/ttyUSB0 57600 igncr clocal -echo -ixon"
> 
> # set up link to /dev/gps5
> log_daemon_msg "Creating link to /dev/gps5."
> sudo "ln -T /dev/ttyUSB0 /dev/gps5"
> 
> # restart ntpd
> sudo "/etc/init.d/ntp start"
> 
> Any help is greatly appreciated.
> 
> Sincerely,
> 
> Ron
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/ale/attachments/20120215/69e74ae9/attachment.bin 


More information about the Ale mailing list