I'm running this code and is working great, but whenever I enable it for running when booting, my router won't boot. When I do script start
is working, when I'm doing script boot
is working too. But whenever I do script enable
to make it run when boot, I restart my router and my router never starts, it freezes and I need to enter failsafe mode to unbrick it.
Am I doing anything wrong? Are START and STOP variables okay?
#!/bin/sh /etc/rc.common
START=10
STOP=15
boot() {
airmon-ng start wlan0
sleep 1
start
}
start() {
rssi mon0 &
}
stop() {
killall -9 rssi
exit 1
}