From ffc564720c1df55cf3960291358e4124d38a98ea Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 23 May 2023 12:47:00 +0800 Subject: [PATCH] Typo - this is self-explanatory, the typo prevented the script from running, this script is needed to reconfigure the default network system, basically swapping eth0 and eth1, so that eth0 is wan and eth1 is lan. This means that if there is only one ethernet interface, it doesn't assign it a fixed IP address and start responding to DHCP requests on it. It was broken for a long time but I didn't have time to investigate until now. --- defaults/49-network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/49-network b/defaults/49-network index 494c737..ce423bb 100644 --- a/defaults/49-network +++ b/defaults/49-network @@ -1,6 +1,6 @@ VERSION=1 -[ "$(uci -q get defaults.version.network)" -ge "$VERSION" ] & exit +[ "$(uci -q get defaults.version.network)" -ge "$VERSION" ] && exit # save version /sbin/uci set defaults.version.network="$VERSION"