mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2024-12-12 08:56:25 +01:00
69521b374f
- 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 ... >
42 lines
481 B
Bash
Executable File
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 $?
|
|
|