#!/bin/bash # # chkconfig: - 91 35 # description: Starts and stops btp. \ start() { echo -n $"Starting btp" echo /lib/modules/2.4.26-bigphys/modules.daq/mkbtp } stop() { echo -n $"Shutting down btp" echo /sbin/rmmod btp } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop sleep 1 start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac