From 87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 26 Mar 2009 19:41:58 +0100 Subject: update --- oss-hg/oss.rc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 oss-hg/oss.rc (limited to 'oss-hg/oss.rc') diff --git a/oss-hg/oss.rc b/oss-hg/oss.rc new file mode 100644 index 0000000..3f63378 --- /dev/null +++ b/oss-hg/oss.rc @@ -0,0 +1,32 @@ +#!/bin/bash +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy 'Starting Open Sound System' + if /usr/sbin/soundon + then + add_daemon oss + stat_done + else + stat_fail + fi + ;; + stop) + stat_busy 'Stopping Open Sound System' + if /usr/sbin/soundoff + then + rm_daemon oss + stat_done + else + stat_fail + fi + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart}" +esac -- cgit v1.2.3-24-g4f1b