Skip to content
Snippets Groups Projects
Commit bd3837b5 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

NET reload blatto-daemon

parent 3e8ee19c
No related branches found
No related tags found
No related merge requests found
...@@ -36,3 +36,8 @@ then ...@@ -36,3 +36,8 @@ then
fi fi
fi fi
if [ "$reason" == BOUND ] || [ "$reason" == NOCARRIER ]
then
systemctl reload net-blatto-daemon
fi
...@@ -94,3 +94,8 @@ then ...@@ -94,3 +94,8 @@ then
echo $msg_prefix sleep end echo $msg_prefix sleep end
fi fi
fi fi
if [ "$reason" == BOUND ] || [ "$reason" == NOCARRIER ]
then
systemctl reload net-blatto-daemon
fi
...@@ -9,3 +9,5 @@ ip link set $interface up ...@@ -9,3 +9,5 @@ ip link set $interface up
ip addres add 192.168.1.50/24 dev $interface ip addres add 192.168.1.50/24 dev $interface
ip route add default via 192.168.1.1 dev $interface ip route add default via 192.168.1.1 dev $interface
(echo domain lan; echo nameserver 192.168.1.1 ) | resolvconf -a $interface (echo domain lan; echo nameserver 192.168.1.1 ) | resolvconf -a $interface
systemctl reload net-blatto-daemon
...@@ -11,3 +11,5 @@ ip addres add 2001:718:1e03:81a::4e/64 dev $interface ...@@ -11,3 +11,5 @@ ip addres add 2001:718:1e03:81a::4e/64 dev $interface
ip route add default via 10.10.10.1 dev $interface ip route add default via 10.10.10.1 dev $interface
ip route add default via 2001:718:1e03:81a::1 dev $interface ip route add default via 2001:718:1e03:81a::1 dev $interface
(echo domain kam.mff.cuni.cz; echo nameserver 10.10.10.1 ) | resolvconf -a $interface (echo domain kam.mff.cuni.cz; echo nameserver 10.10.10.1 ) | resolvconf -a $interface
systemctl reload net-blatto-daemon
...@@ -13,3 +13,5 @@ ip route add 2a01:510:d504:7500::0/56 via 2a01:510:d504:751a::1 dev wg-blatto me ...@@ -13,3 +13,5 @@ ip route add 2a01:510:d504:7500::0/56 via 2a01:510:d504:751a::1 dev wg-blatto me
ip route add default via 10.12.11.1 dev $interface metric 1000 ip route add default via 10.12.11.1 dev $interface metric 1000
ip route add default via 2a01:510:d504:751a::1 dev $interface metric 1000 ip route add default via 2a01:510:d504:751a::1 dev $interface metric 1000
(echo domain jk.blatto.eu; echo nameserver 10.12.11.1 ) | resolvconf -a $interface (echo domain jk.blatto.eu; echo nameserver 10.12.11.1 ) | resolvconf -a $interface
systemctl reload net-blatto-daemon
...@@ -116,6 +116,8 @@ then ...@@ -116,6 +116,8 @@ then
fi fi
echo \$1 > /run/wg-blatto/routing echo \$1 > /run/wg-blatto/routing
systemctl reload net-blatto-daemon
AMEN AMEN
chmod +x /etc/net/wg-blatto{,-route} chmod +x /etc/net/wg-blatto{,-route}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment