Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Sat Oct 09, 2021 12:17 Post subject:
The apply button restarts all the services/interfaces AFAIK, its all JavaScript, so you're talking about some kind of script that you would design to restart everything by calling this script without rebooting, I presume some shell script would do the job.
Restarting services and what not its pretty much simple'ish, its Linux after all in the dd-wrt flavour.
Short of that you can reboot.
You can search the source code for to_apply and look at what comes up.
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Sat Oct 09, 2021 14:49 Post subject:
There is no 'easy' answer to this for what command(s) to use via cli. The first would be nvram commit; but
what you'd have to use after that really depends on what exactly you've changed and what router it is on. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Sat Oct 09, 2021 20:50 Post subject:
When unsure top should know, which running services are going atm, so if for instance, you change a setting for wifi, you should have already sent that interface down, before fiddling so sending the if back up would do the trick and nothing else should be needed.
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Sat Oct 09, 2021 21:48 Post subject:
It is Linux, but it is also DD-WRT. Restarting wireless on Broadcom, for example is different than on Atheros, Marvell, etc. There is also a specific service that is for just wireless on all platforms, as well as one for firewall, and one for networking in general, if I am not mistaken. I just think it's easier to 'nvram commit && reboot'; I don't have all my notes handy on specifics, unfortunately. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
I have to agree with KP... the reboots seem more reliable and ensure that what you are doing will work next time. Otherwise I would suggest doing all of the individual commands yourself
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Sat Oct 16, 2021 7:28 Post subject:
portsup wrote:
It's a bit strange you can't easily reproduce the gui apply button in console
Depends what you mean by easy (strange not so much). A reboot is pretty easy, does it get any easier? Apply exists in UI, so two easy simple ways already exist.
I dont know if anyone will implement convenient command to restart all related services and send interfaced down/up (the easy one you wanted). Its open source though, usually when something is annoying enough it prompts for community driven contributions.