1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-12 08:56:25 +01:00
OpenVoiceOS/buildroot-external/package/respeaker/S60seeed_voicecard
Peter Steenbergen 69521b374f Buildroot: Initial start of the respeaker package
- Download latest code from github
- Compile and install kernel modules
- Init script to load the modules
- Copy over all overlays and configuration files
- Init script to start seeed-voicecard bash script

< ... This now needs testing ... >
2018-11-02 17:07:53 +01:00

42 lines
481 B
Bash
Executable File

#!/bin/sh
#
# seeed-voicecard Starts seeed-voicecard.
#
umask 077
start() {
printf "Starting seeed-voicecard: "
/usr/bin/seeed-voicecard
touch /var/lock/seeed-voicecard
echo "OK"
}
stop() {
printf "Stopping seeed-voicecard: "
killall seeed-voicecard
rm -f /var/lock/seeed-voicecard
echo "OK"
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?