Hello, i created my first script, but i would like to be sure that will not brick or making some other problems to my modem heheeh
I just copy/paste some codes that i find here and modified the timing of cru command.
Is it correct? Will it work?
Can i upload this 3 files through WinSCP?
THANK YOU
services-start
#!/bin/sh
cru a filtering-on "30 15-17 * * 0-6 /jffs/scripts/aiprot-on.sh"
cru a filtering-on "31 17 * * 0-6 /jffs/scripts/aiprot-off.sh"
aiprot-on.sh
#!/bin/sh
nvram set wrs_app_enabled=1
nvram set wrs_enable=1
service "restart_wrs;restart_firewall"
aiprot-off.sh"
#!/bin/sh
nvram set wrs_app_enabled=0
nvram set wrs_enable=0
service "restart_wrs;restart_firewall"
I just copy/paste some codes that i find here and modified the timing of cru command.
Is it correct? Will it work?
Can i upload this 3 files through WinSCP?
THANK YOU
services-start
#!/bin/sh
cru a filtering-on "30 15-17 * * 0-6 /jffs/scripts/aiprot-on.sh"
cru a filtering-on "31 17 * * 0-6 /jffs/scripts/aiprot-off.sh"
aiprot-on.sh
#!/bin/sh
nvram set wrs_app_enabled=1
nvram set wrs_enable=1
service "restart_wrs;restart_firewall"
aiprot-off.sh"
#!/bin/sh
nvram set wrs_app_enabled=0
nvram set wrs_enable=0
service "restart_wrs;restart_firewall"