#!/sbin/runscript # # By George El-Haddad # # Free for anyone to modify # # description: Fax Terminal for Hylafax # processname: faxgetty # pidfile: /var/run/faxgetty.pid start() { echo -n "Starting FaxGetty: " /usr/sbin/faxgetty -D /dev/ttyS0 echo touch /var/lock/subsys/faxgetty eend $?; } status() { if [ -f /var/lock/subsys/faxgetty ]; then echo -n "FaxGetty is running on /dev/ttyS0" echo eend 0 else echo -n "FaxGetty is not running" echo eend 0 fi } stop() { echo -n "Shutting down FaxGetty: " killproc /usr/sbin/faxgetty echo rm -f /var/lock/subsys/faxgetty rm -f /var/run/faxgetty.pid eend $?; }