summaryrefslogtreecommitdiff
path: root/package/esound/files/esd.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/esound/files/esd.init')
-rw-r--r--package/esound/files/esd.init24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/esound/files/esd.init b/package/esound/files/esd.init
new file mode 100644
index 000000000..b6acdb5f3
--- /dev/null
+++ b/package/esound/files/esd.init
@@ -0,0 +1,24 @@
+#!/bin/sh
+#FWINIT 75
+. /etc/rc.conf
+
+case $1 in
+autostart)
+ test x"${esd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ esd -d /dev/sound/dsp -public -tcp -nobeeps
+ ;;
+stop)
+ killall esd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ ;;
+esac
+exit 0