10

After I manually edit the:

vi /etc/config/wireless

file, what should I do to apply the modifications? Until this day I rebooted the router, but aren't there any better solutions? (and no, www is disabled on the router)

4 Answers 4

5

There is special wifi command. There is a lot of references but I didn't find any standalone manual for it.

Usage: /sbin/wifi [down|detect|reload|status]

To apply wireless settings use

wifi reload
5
/etc/init.d/network reload

source: http://wiki.openwrt.org/doc/techref/netifd

2
  • 1
    No, what you are saying here is for /etc/config/network, not for /etc/config/wireless
    – hzh
    Commented Sep 1, 2018 at 4:15
  • 1
    @huangzonghao When you run /etc/init.d/network reload it calls /sbin/wifi reload_legacy in the reload_service part of the script so it does reload the wireless settings.
    – Terrance
    Commented Apr 6, 2019 at 2:45
2

None of the answers worked for me. The only one that works fine, run:

/sbin/wifi
1

It is a good practice to reboot the router so that new wireless changes can be applied to the wireless portion of the router. Alternatively, you can use:

wifi down
wifi up

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .