1
0
Fork 0

router: restart dhcpcd on ppp interface creation

This commit is contained in:
clerie 2022-07-27 10:08:23 +02:00
parent 36e16a4c7b
commit 8a9a9f92e0
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
path = "/etc/ppp/pap-secrets";
mode = "0440";
};
# Setting default routes based on interfaces in different tables
environment.etc."ppp/ip-up" = {
text = ''
@ -58,6 +59,8 @@
${pkgs.iproute2}/bin/ip -6 route replace default dev ppp-uplink-b metric 1000
;;
esac
${pkgs.systemd}/bin/systemctl restart dhcpcd.service
'';
mode = "555";
};