1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

adjust networkd-dispatcher dnsmasq script

This commit is contained in:
Jerry Vonau 2020-04-04 01:35:02 -05:00
parent d0a27ce0df
commit ccb1bf348a
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
if [ "$IFACE" == "{{ discovered_wireless_iface }}" ]; then
echo "NET-DISP-WiFi $IFACE $STATE"
/usr/sbin/ip link set up ap0

View file

@ -1,5 +1,7 @@
#!/bin/bash
if [ "$IFACE" == "{{ iiab_lan_iface }}" ]; then
/bin/systemctl restart dnsmasq.service
echo "Restarting dnsmasq in 5 seconds"
/bin/sleep 5 && /bin/systemctl --no-block restart dnsmasq.service
echo "Restarting dnsmasq"
fi