Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
beagle
>
beagle-configs
> beagle-alsamixer-settings.init
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File beagle-alsamixer-settings.init of Package beagle-configs
#!/bin/sh # Init file for BeagleBoard sound settings ### BEGIN INIT INFO # Provides: beagle-alsamixer default settings # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: beagle-alsamixer settings ### END INIT INFO # source function library #. /etc/rc.d/init.d/functions RETVAL=0 start() { echo -n "Setting alsamixer: loading beagle defaults" /sbin/alsactl restore -f /etc/asound.state RETVAL=$? if [ "$RETVAL" = 0 ]; then echo -n " ... [OK]" RETVAL=0 else echo -n " ... [FAILED]" RETVAL=1 fi echo } stop() { echo -n "Saving alsamixer settings: " /sbin/alsactl store -f /etc/asound.state RETVAL=$? if [ "$RETVAL" = 0 ]; then echo -n " ... [OK]" RETVAL=0 else echo -n " ... [FAILED]" RETVAL=1 fi echo } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; status) echo -n "Not implemented" RETVAL=1 ;; *) echo "Usage: $0 {start|stop|restart}" RETVAL=1 esac exit $RETVAL