I have two scripts that play a tune through /usr/bin/beep
when the router starts and shuts down. This worked fine before upgrading to 18.06.4 today from 18.06.2
They scripts are in /etc/init.d/
and are executable, what am I missing here?
# cat /etc/init.d/startsound
#!/bin/sh /etc/rc.common
START=6
STOP=12
start() {
/usr/bin/beep -f 659 -l 460 -n -f 784 -l 340 -n -f 659 -l 230 -n -f 659 -l 110 -n \
-f 880 -l 230 -n -f 659 -l 230 -n -f 587 -l 230 -n \
-f 659 -l 460 -n -f 988 -l 340 -n -f 659 -l 230 -n -f 659 -l 110 -n \
-f 1047 -l 230 -n -f 988 -l 230 -n -f 784 -l 230 -n -f 659 -l 230 -n \
-f 988 -l 230 -n -f 1318 -l 230 -n -f 659 -l 110 -n -f 587 -l 230 -n \
-f 587 -l 110 -n -f 494 -l 230 -n -f 740 -l 230 -n -f 659 -l 460
}
stop() {
echo stopping
}
root@apu:~# cat /etc/init.d/stopsound
#!/bin/sh /etc/rc.common
STOP=99
stop() {
for n in 1 2 3 4 5 6 7 8 9 0; do
for f in 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600; do
/usr/bin/beep -f $f -l 20
done
done
}
root@apu:~# uname -a
Linux apu 4.14.131 #0 SMP Thu Jun 27 12:18:52 2019 x86_64 GNU/Linux
/usr/bin/beep -f 659 -l 460 -n -f 784 -l 340 -n -f 659 -l 230 -n -f 659 -l 110 -n
via ssh works fine.
Has something changed since 18.06.2?