Odp: Netgear LBR20 Orbi
Plik w init.d ma mieć określoną strukturę, nie jest "dowolnym" skryptem
touch /etc/init.d/modem-off
#!/bin/sh /etc/rc.common
START=19
STOP=50
USE_PROCD=1
shutdown() {
echo "tu bylem"
sleep 8
}chmod 755 /etc/init.d/modem-off
/etc/init.d/modem-off enable
Ale jeżeli taki skrypt jest potrzebny to po prostu trzeba zrobić odpowiedni skrypt na start/stop i tyle. Jak chcesz to ci go wystrugam wieczorem.