diff --git a/package/gluon-core/files/lib/gluon/upgrade/core/initial/001-sysconfig b/package/gluon-core/files/lib/gluon/upgrade/core/initial/001-sysconfig index 1affcb46..1bcedc3a 100755 --- a/package/gluon-core/files/lib/gluon/upgrade/core/initial/001-sysconfig +++ b/package/gluon-core/files/lib/gluon/upgrade/core/initial/001-sysconfig @@ -17,4 +17,5 @@ get_primary_mac() { sysconfig_set lan_ifname "$(uci get network.lan.ifname)" +sysconfig_set wan_ifname "$(uci get network.wan.ifname)" sysconfig_set primary_mac "$(get_primary_mac)" diff --git a/package/gluon-core/files/lib/gluon/upgrade/core/initial/011-gluon-network b/package/gluon-core/files/lib/gluon/upgrade/core/initial/011-gluon-network index 28211d71..a82183a8 100755 --- a/package/gluon-core/files/lib/gluon/upgrade/core/initial/011-gluon-network +++ b/package/gluon-core/files/lib/gluon/upgrade/core/initial/011-gluon-network @@ -1,20 +1,19 @@ #!/bin/sh +. /lib/functions.sh . /lib/gluon/functions/sysconfig.sh -uci -q batch <