#!/bin/sh case $1 in start) /sbin/mgeupsd -l -i 10 ttyS1 ;; stop) pid=`cat /var/run/mgeupsd.pid` kill $pid ;; *) echo Usage: $0 start\|stop ;; esac exit 0