Optware config scripts not loading at start up [FIXED]
I followed the PPTP VPN Tutorial on this site exactly but it failed to start on boot.
Got it to work by creating and editing the file /opt/.autorun
#!/bin/sh
sleep 15
if [ -f /var/notice/wan ]; then
for s in /opt/etc/config/*.wanup; do $s; done
for s in /opt/etc/config/*.fire; do $s; done
fi
Be sure to do chmod +x /opt/.autorun so it gets executed.
The important thing here is to wait a bit for rest of optware to initialize. Otherwise scripts in /opt/etc/config/* do not even get called.
Tested with a couple of reboots and so far it's working.