/scripts/sbin/alcasar-bypass.sh |
---|
32,11 → 32,12 |
ifup $INTIF |
sh /usr/local/bin/alcasar-iptables-bypass.sh |
DHCP=`grep ^DHCP= $CONF_FILE|cut -d"=" -f2` |
if [ DHCP != off ] then { |
if [ DHCP != off ] |
then |
$SED "s?^#route.*?&?g" /etc/dnsmasq.conf # dnsmasq become the DHCP server |
$SED "s?^no-dhcp-interface.*?#&?g" /etc/dnsmasq.conf # |
/usr/bin/systemctl restart dnsmasq |
} |
fi |
rm -f /etc/cron.d/alcasar-daemon-watchdog # don't restart daemons (specially coova) |
echo "ALCASAR est en mode 'bypass'" |