How to mimic '(Save and) Apply" from CLI?

I can use uci to change settings in (presumed) RAM, and then 'uci commit' to save to NVRAM. How to I then 'apply' these new settings, from the CLI?

You have to restart the service whose settings you have changed:

/etc/init.d/service_name restart

OpenWrt hasn't used NVRAM anymore since the times of White Russian AFAIK.

Applying settings is indeed done by restarting or reloading the related service.

Execute /sbin/reload_config - this mostly simulates what an apply through LuCI would do.


Thx, that's the silver bullet I sought!

(Thx to pavelgl for their morsel of useful info as well, which may serve me later.)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.