#!/bin/sh # Startup script for sis3150usb # # chkconfig: 35 98 02 # description: Start SIS3150-USB hotplug deamon # Sanity checks. [ -x /usr/opt/sisusb/bin/sishotplugd ] || exit 0 # Source function library. . /etc/rc.d/init.d/functions prog="sishotplugd" start() { echo -n $"Starting $prog: " daemon /usr/opt/sisusb/bin/sishotplugd --firmware=/usr/opt/sisusb/etc/setup_8051.hex RETVAL=$? echo return $RETVAL } stop() { if test "x`pidof sishotplugd`" != x; then echo -n $"Stopping $prog: " killproc sishotplugd echo fi RETVAL=$? return $RETVAL } case "$1" in start) start ;; stop) stop ;; status) status sishotplugd ;; restart) stop start ;; condrestart) if test "x`pidof sishotplugd`" != x; then stop start fi ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart}" exit 1 esac exit $RETVAL