#!/sbin/runscript depend() { need net after bootmisc } start() { ebegin "Starting Serial to network proxy (ser2net)" /usr/sbin/ser2net ${SER2NET_CISCO} ${SER2NET_CTRL_PORT} echo `ps -aeo pid,command|grep "/usr/sbin/ser2net"|grep -v grep|cut -d " " -f1` > /var/run/ser2net.pid eend $? } stop() { ebegin "Stopping Serial to network proxy (ser2net)" start-stop-daemon --stop --pidfile /var/run/ser2net.pid eend $? } restart() { svc_stop svc_start }