mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 17:15:08 +00:00
siflower: hnat_update_interface.sh use absolute path
Signed-off-by: Xinfa Deng <Xinfa Deng>
This commit is contained in:
parent
ec747a47be
commit
567f7a8355
@ -10,8 +10,8 @@ Signed-off-by: GL.iNet-Xinfa.Deng <xinfa.deng@gl-inet.com>
|
|||||||
.../mac80211/files/lib/netifd/wireless/mac80211.sh | 11 ++++++-----
|
.../mac80211/files/lib/netifd/wireless/mac80211.sh | 11 ++++++-----
|
||||||
.../kernel/mac80211/files/lib/wifi/mac80211.sh | 20 ++++++++++++--------
|
.../kernel/mac80211/files/lib/wifi/mac80211.sh | 20 ++++++++++++--------
|
||||||
.../network/config/firewall/files/firewall.config | 9 ---------
|
.../network/config/firewall/files/firewall.config | 9 ---------
|
||||||
.../network/config/netifd/files/etc/init.d/network | 1 -
|
.../network/config/netifd/files/etc/init.d/network | 5 ++---
|
||||||
6 files changed, 21 insertions(+), 26 deletions(-)
|
6 files changed, 23 insertions(+), 28 deletions(-)
|
||||||
|
|
||||||
diff --git a/openwrt-18.06/package/base-files/files/bin/config_generate b/openwrt-18.06/package/base-files/files/bin/config_generate
|
diff --git a/openwrt-18.06/package/base-files/files/bin/config_generate b/openwrt-18.06/package/base-files/files/bin/config_generate
|
||||||
index 9de0c3a..f2bee1f 100755
|
index 9de0c3a..f2bee1f 100755
|
||||||
@ -165,17 +165,29 @@ index d6e311c..584ed85 100644
|
|||||||
list network 'wan'
|
list network 'wan'
|
||||||
list network 'wan6'
|
list network 'wan6'
|
||||||
diff --git a/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network b/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network
|
diff --git a/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network b/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network
|
||||||
index 2501824..7af9df3 100755
|
index 2501824de..cf9f4dedf 100755
|
||||||
--- a/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network
|
--- a/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network
|
||||||
+++ b/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network
|
+++ b/openwrt-18.06/package/network/config/netifd/files/etc/init.d/network
|
||||||
@@ -15,7 +15,6 @@ init_switch() {
|
@@ -13,9 +13,8 @@ init_switch() {
|
||||||
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
./usr/bin/hnat_update_interface.sh
|
- ./usr/bin/hnat_update_interface.sh
|
||||||
|
+ /usr/bin/hnat_update_interface.sh
|
||||||
local lanip=$(uci get network.lan.ipaddr)
|
local lanip=$(uci get network.lan.ipaddr)
|
||||||
- echo ${lanip} siwifi.cn > /etc/hosts
|
- echo ${lanip} siwifi.cn > /etc/hosts
|
||||||
|
|
||||||
init_switch
|
init_switch
|
||||||
|
|
||||||
|
@@ -30,7 +29,7 @@ start_service() {
|
||||||
|
}
|
||||||
|
|
||||||
|
reload_service() {
|
||||||
|
- ./usr/bin/hnat_update_interface.sh
|
||||||
|
+ /usr/bin/hnat_update_interface.sh
|
||||||
|
local rv=0
|
||||||
|
|
||||||
|
init_switch
|
||||||
--
|
--
|
||||||
2.7.4
|
2.7.4
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user