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/
|