# 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