#!/bin/bash # # chkconfig: - 91 35 # description: Starts and stops camdrv. \ start() { echo -n $"Starting camdrv" echo /sbin/modprobe camdrv } stop() { echo -n $"Shutting down camdrv" echo /sbin/rmmod camdrv } # 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