mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-01-20 21:11:22 +01:00
Buildroot: Respeaker: Change the way of loading seeed-voicecard
- Only mount things if seeed-voicecard is ran - We can only start things so no need for start-stop-restart init
This commit is contained in:
parent
d6f6c07c12
commit
ceecabfe3c
@ -1,3 +1,8 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Load seeed-voicecard modules....
|
||||
#
|
||||
|
||||
modprobe snd-soc-seeed-voicecard
|
||||
modprobe snd-soc-ac108
|
||||
modprobe snd-soc-wm8960
|
||||
|
@ -1,42 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# seeed-voicecard Starts seeed-voicecard.
|
||||
# Configure seeed-voicecard....
|
||||
#
|
||||
|
||||
umask 077
|
||||
|
||||
start() {
|
||||
printf "Starting seeed-voicecard: "
|
||||
mount -t configfs none /sys/kernel/config
|
||||
/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 $?
|
||||
|
||||
echo "Starting seeed-voicecard..."
|
||||
mount -t configfs none /sys/kernel/config
|
||||
mkdir -p /boot
|
||||
mount -t vfat /dev/mmcblk0p1 /boot
|
||||
/usr/bin/seeed-voicecard
|
||||
touch /var/lock/seeed-voicecard
|
||||
|
@ -1,6 +1,5 @@
|
||||
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||
/dev/root / ext2 rw,noauto 0 1
|
||||
/dev/mmcblk0p1 /boot vfat defaults 0 2
|
||||
proc /proc proc defaults 0 0
|
||||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
|
||||
tmpfs /dev/shm tmpfs mode=0777 0 0
|
||||
|
Loading…
Reference in New Issue
Block a user