Posted: Fri Jan 27, 2023 14:53 Post subject: script hook execute after each apply config
I would like to run a script any time the <apply settings> button is clicked in the DDWRT web gui. I use startup scripts to configure my router but this configuration gets wiped out each time I click on <apply settings> which instead fetches the configuration from the NVRAM variables and updates the router configuration every time I click on <apply settings> thereby wiping out my startup script configuration. This means I must remember to reboot my router every time I make a settings change in the gui.
What I would like is each time I apply a new setting in the gui to have a hook automatically run my startup script after the settings have been saved.
Joined: 16 Nov 2015 Posts: 6410 Location: UK, London, just across the river..
Posted: Fri Jan 27, 2023 15:27 Post subject:
not bad to tell us what router and which build you are running ...as there may be build errors..
on apply start up script and firewall script are executed and some services restarted...the most save practice is to save and reboot...as sometimes apply can interfere with some other settings...
you can use custom script ..witch is not executed on apply...but you have to call it...manually or
via or usb script commands...if you call it from start up script it will be executed on apply ...i guess...
to call custom script:
sh /tmp/.rc_custom & _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
on apply start up script and firewall script are executed and some services restarted...
Only the firewall script is called on Apply; this was mentioned several times in the forum in the recent past... _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio