Renaming Sentinel to Vigilia; adjusting scripts; adding brctl option in menuconfig...
[lede.git] / vigilia_setup / rc.local
diff --git a/vigilia_setup/rc.local b/vigilia_setup/rc.local
new file mode 100644 (file)
index 0000000..bc39028
--- /dev/null
@@ -0,0 +1,16 @@
+# Put your custom commands here that should be executed once
+# the system init finished. By default this file does nothing.
+
+#!/bin/sh -e
+# Put your custom commands here that should be executed once
+# the system init finished. By default this file does nothing.
+
+exec 2> /tmp/rc.local.log      # send stderr from rc.local to a log file
+exec 1>&2                              # send stdout to the same log file
+set -x                                 # tell sh to display commands before execution
+
+# Sleep and run brctl on the background
+sleep 20 && /usr/sbin/brctl hairpin br-wifi wlan0 on && /usr/sbin/brctl hairpin br-wifi wlan1 on &
+sleep 20 && /root/setup/startup.sh &
+
+exit 0