esd.init 298 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #FWINIT 75
  3. . /etc/rc.conf
  4. case $1 in
  5. autostart)
  6. test x"${esd:-NO}" = x"NO" && exit 0
  7. exec sh $0 start
  8. ;;
  9. start)
  10. esd -d /dev/sound/dsp -public -tcp -nobeeps
  11. ;;
  12. stop)
  13. killall esd
  14. ;;
  15. restart)
  16. sh $0 stop
  17. sh $0 start
  18. ;;
  19. *)
  20. echo "Usage: $0 {start | stop | restart}"
  21. ;;
  22. esac
  23. exit 0