| To: | |
|---|---|
| Subject: | [ts-7000] Help with Bat3 init script |
| From: | "lee.weihong" <> |
| Date: | Sun, 08 Jun 2008 19:15:56 -0000 |
Hi,
Linux newbie here, and I have read through the posts about setting up
the Bat3 application running. All they mentioned was "Add the daemon
to the startup script", but I could not get the Bat3 daemon to auto
load at startup. Here is my script which i linked using update-rc.d at
runlevel 99:
#! /bin/sh
case "$1" in
start)
echo "Starting Bat3 Utility."
insmod /root/tsuart1.ko
insmod /root/tsuart-bat3.ko
ln -sf /dev/ttts0 /dev/ttyT3S0
start-stop-daemon --start --exec /sbin/bat3 -- --shutdown 180\
--charge 400&
;;
stop)
echo "Stopping Bat3 Utility."
start-stop-daemon --stop --name bat3
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: {start|stop|restart}"
exit 1
;;
esac
exit 0
Unfortunately, the LED on the Bat3 board does not begin to flash. I
have checked that all the modules have been insmod, and the symlink
was created, but "pidof bat3" didn't give a valid pid. I can, however,
manually run bat3 from the console, and bat3 will work correctly.
I suspect there is something wrong with the init script I wrote (first
time into shell scripts) can someone help me out?
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [ts-7000] Linux related question, Razvan Ionut Stoian |
|---|---|
| Next by Date: | [ts-7000] Re: [7200] problem with fsck, research_labs80 |
| Previous by Thread: | [ts-7000] Linux related question, Razvan Ionut Stoian |
| Next by Thread: | Re: [ts-7000] Help with Bat3 init script, Michael Schmidt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU