-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 20: Additonal packages for Buildroot ver. 2011.11
1. Added startup script and ALSA state configuration file for Beagleboard-xM; 2. Added gzip compression for RootFS image.
- Loading branch information
Max Galemin
committed
Mar 3, 2012
1 parent
1610837
commit 06eb403
Showing
4 changed files
with
870 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
# | ||
# Start the ALSA. | ||
# | ||
|
||
# Make sure the alsactl progam exists | ||
[ -f /usr/sbin/alsactl ] || exit 0 | ||
|
||
ALSA_BB_XM_STATE=/var/lib/alsa/asound-bb-xm.state | ||
|
||
case "$1" in | ||
start) | ||
echo -n "Starting ALSA... " | ||
/usr/sbin/alsactl -f $ALSA_BB_XM_STATE restore | ||
echo "done." | ||
;; | ||
stop) | ||
echo -n "Stopping ALSA... " | ||
/usr/sbin/alsactl -f $ALSA_BB_XM_STATE store | ||
echo "done." | ||
;; | ||
restart|reload) | ||
"$0" stop | ||
"$0" start | ||
;; | ||
*) | ||
echo $"Usage: $0 {start|stop|restart|reload}" | ||
exit 1 | ||
esac | ||
|
||
exit $? | ||
|
Oops, something went wrong.