fix: move network restart run
This commit is contained in:
@@ -80,4 +80,7 @@ echo "Installed podkop..."
|
|||||||
opkg install $DOWNLOAD_DIR/podkop*.ipk
|
opkg install $DOWNLOAD_DIR/podkop*.ipk
|
||||||
opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk
|
opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk
|
||||||
|
|
||||||
rm -f $DOWNLOAD_DIR/podkop*.ipk $DOWNLOAD_DIR/luci-app-podkop*.ipk
|
rm -f $DOWNLOAD_DIR/podkop*.ipk $DOWNLOAD_DIR/luci-app-podkop*.ipk
|
||||||
|
|
||||||
|
printf "\033[32;1mRestart network\033[0m\n"
|
||||||
|
service network restart
|
||||||
|
|||||||
@@ -105,8 +105,6 @@ wg_awg_setup() {
|
|||||||
uci set firewall.@forwarding[-1].family='ipv4'
|
uci set firewall.@forwarding[-1].family='ipv4'
|
||||||
uci commit firewall
|
uci commit firewall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
service network restart
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wg_awg_setup "$1"
|
wg_awg_setup "$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user