bricco1981 / MT7622-mtkwifi

21 stars 9 forks source link

About auto-applying "add ra0/rai0 to br-lan" #4

Closed hpx502766238 closed 8 months ago

hpx502766238 commented 8 months ago
          About auto-applying "add ra0/rai0 to br-lan", I have searched for a while. The conclusion is that to apply this configuration, the sbin/mtkwifi tool does not provide a direct function for it; instead, it relies on the "vif_enable" function from mtkwifi.lua. Therefore, I need to make an HTTP request at startup, for example, using curl -s http://127.0.0.1/cgi-bin/luci/admin/network/wifi/vif_enable/ra0. However, at present, there is an issue with authentication or logging in to perform this action.

Originally posted by @hpx502766238 in https://github.com/bricco1981/MT7622-mtkwifi/issues/3#issuecomment-1962422015

hpx502766238 commented 8 months ago

Another solution is to create a direct init.d shell script, but what I need is to execute it once, not every time the device boots up.

hpx502766238 commented 8 months ago

solved.