
| The Following User Says Thank You to b-man For This Useful Post: | ||
#!/bin/sh
#/etc/init.d/n900_wd: start rx51 hw watchdog service.
### BEGIN INIT INFO
# Provides: n900_wd
# Short-Description: Start rx51 hw watchdog service.
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# X-Start-Before: $all
# Default-Start: 2 3 4 5
# Default-Stop:
### END INIT INFO
[ -x /usr/sbin/wd_keepalive ] || exit 0
RETVAL=0
PROG=wd_keepalive
PIDFILE=/var/run/wd_keepalive.pid
LOCKFILE=/var/lock/subsys/n900_wd
return_failure(){
echo -n "Starting ${0} failed"
}
return_sucsess(){
echo -n "Starting ${0} sucseeded"
}
start(){
echo -n "Starting ${PROG}..."
/usr/sbin/${PROG} -c /etc/watchdog-omap.conf
RETVAL=$?
[ ${RETVAL} -ne 0 ] && (return_failure; echo; exit ${RETVAL})
/usr/sbin/${PROG} -c /etc/watchdog-twl4030.conf
RETVAL=$?
[ ${RETVAL} -eq 0 ] && touch ${LOCKFILE}
[ ${RETVAL} -eq 0 ] && return_sucsess
[ ${RETVAL} -ne 0 ] && return_failure
echo
exit ${RETVAL}
}
stop(){
rm -rf ${LOCKFILE} ${PIDFILE}
}
restart(){
stop
start
}
case ${1} in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: ${0} {start|stop|restart}"
exit 1
;;
esac
update-rc.d n900_wd start 09 2 3 4 5 .
watchdog-device = /dev/twl4030_wdt interval = 10 realtime = yes priority = 1
watchdog-device = /dev/watchdog interval = 10 realtime = yes priority = 1
I'll ask around some friends that might or might not understand whats wrong
| The Following User Says Thank You to Siggen For This Useful Post: | ||

| The Following User Says Thank You to b-man For This Useful Post: | ||

