Jack Yaz
Part of the Furniture
I have found this on the wiki: https://github.com/RMerl/asuswrt-me...or-VPN-and-SSID-for-Regular-ISP-using-OpenVPN.
but it says it's not complete, so I;m unsure if it will work?
Also, the below snippet, would it be better to write this into dnsmasq.postconf, or dnsmasq.conf .add and then restart dnsmasq, rather than killing and sleeping?
	
	
	
		
				
			but it says it's not complete, so I;m unsure if it will work?
Also, the below snippet, would it be better to write this into dnsmasq.postconf, or dnsmasq.conf .add and then restart dnsmasq, rather than killing and sleeping?
		Code:
	
	if [ `cat /etc/dnsmasq.conf | grep -c $WRLSS_IF` == 0 ]; then
    killall dnsmasq
    sleep 2
    echo "interface=$WRLSS_IF" >> /etc/dnsmasq.conf
    echo "dhcp-range=$WRLSS_IF,$LS_START,$LS_END,$WRLSS_IF_NETMASK,$LS_TIME" >> /etc/dnsmasq.conf
    echo "dhcp-option=$WRLSS_IF,$DHCP_OPT1,$WRLSS_IF_INET_ADDR" >> /etc/dnsmasq.conf
    dnsmasq --log-async
fi
sleep 2
### Check to see if tun interface is available ###
while [ ! -n "`ifconfig | grep $TUN_IF`" ]; do
    sleep 1
done
#####
	
	