From 2deb82bcb6427e9c3a5640a963dba9b5ae8ca94e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 1 May 2015 19:50:40 +0200 Subject: [PATCH] gluon-setup-mode: set regdom OpenWrt doesn't set the regdom unless a WLAN device is started. Explicitly set the regdom in the setup mode to get the correct list of allowed txpower entries in the planned LuCI module. --- .../gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network | 1 + 1 file changed, 1 insertion(+) diff --git a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network index 8bc0ba4f..15f0e278 100755 --- a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network +++ b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network @@ -45,6 +45,7 @@ init_switch() { start_service() { prepare_config init_switch + iw reg set "$(lua -e 'print(require("gluon.site_config").regdom)')" procd_open_instance procd_set_param command /sbin/netifd -c /var/gluon/setup-mode/config