1234567891011121314151617181920212223242526272829303132333435363738 |
- #! /bin/sh -
- #
- # devmon/rc.main
- #
- # Device monitor (Udevil).
- #
- # Redirects the standard error to the standard output
- exec 2>&1
- TARGET="$1"
- SVNAME="${2:-devmon}"
- start()
- {
- echo "*** ${SVNAME}: Starting devmon ..."
- exec /usr/bin/devmon --sync
- }
- reset()
- {
- case $3 in
- exit)
- echo "*** ${SVNAME}: Exited status $4"
- ;;
- signal)
- echo "*** ${SVNAME}: Killed on signal $5"
- ;;
- *)
- echo "*** ${SVNAME}: Stopped (${3})"
- ;;
- esac
- }
- # Branch to target
- eval ${TARGET} "$@"
|