linuxOS_AP05/buildroot/board/rockchip/rk356x/fs-overlay-uvc/etc/init.d/S49alsa
2025-06-02 13:59:07 +08:00

20 lines
314 B
Bash
Executable File

#!/bin/sh
#
case "$1" in
start)
if [ -f "/userdata/asound.state" ];then
alsactl restore -f /userdata/asound.state
else
alsactl restore -f /etc/asound.state
fi
;;
stop)
alsactl store -f /userdata/asound.state
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac