bc39028786f3ea2722b8013c29574a1f98715c87
[lede.git] / vigilia_setup / rc.local
1 # Put your custom commands here that should be executed once
2 # the system init finished. By default this file does nothing.
3
4 #!/bin/sh -e
5 # Put your custom commands here that should be executed once
6 # the system init finished. By default this file does nothing.
7
8 exec 2> /tmp/rc.local.log       # send stderr from rc.local to a log file
9 exec 1>&2                       # send stdout to the same log file
10 set -x                          # tell sh to display commands before execution
11
12 # Sleep and run brctl on the background
13 sleep 20 && /usr/sbin/brctl hairpin br-wifi wlan0 on && /usr/sbin/brctl hairpin br-wifi wlan1 on &
14 sleep 20 && /root/setup/startup.sh &
15
16 exit 0