amixer.init 392 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. #FWINIT 60
  3. . /etc/rc.conf
  4. case $1 in
  5. autostop) ;;
  6. autostart)
  7. test x"${amixer:-NO}" = x"NO" && exit 0
  8. exec sh $0 start
  9. ;;
  10. start)
  11. amixer set Master on
  12. amixer set PCM on
  13. amixer set Master 75%
  14. amixer set PCM 75%
  15. ;;
  16. stop)
  17. amixer set Master off
  18. amixer set PCM off
  19. ;;
  20. restart)
  21. sh $0 stop
  22. sh $0 start
  23. ;;
  24. *)
  25. echo "Usage: $0 {start | stop | restart}"
  26. exit 1
  27. ;;
  28. esac
  29. exit $?