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:
parent
d0a27ce0df
commit
ccb1bf348a
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue