linux/x86: bridge eth0/eth1 by default
authorAlexandros Couloumbis <alex@ozo.com>
Fri, 31 Aug 2018 07:57:05 +0000 (10:57 +0300)
committerAlexandros Couloumbis <alex@ozo.com>
Fri, 31 Aug 2018 07:57:05 +0000 (10:57 +0300)
target/linux/x86/base-files/etc/rc.local [new file with mode: 0644]

diff --git a/target/linux/x86/base-files/etc/rc.local b/target/linux/x86/base-files/etc/rc.local
new file mode 100644 (file)
index 0000000..b326ff4
--- /dev/null
@@ -0,0 +1,11 @@
+# Put your custom commands here that should be executed once
+# the system init finished. By default this file does nothing.
+
+sleep 2
+
+brctl stp br-lan off
+brctl addif br-lan eth1
+
+ifconfig eth1 0.0.0.0 up
+
+exit 0