router: restart dhcpcd on ppp interface creation
This commit is contained in:
parent
36e16a4c7b
commit
8a9a9f92e0
@ -5,6 +5,7 @@
|
|||||||
path = "/etc/ppp/pap-secrets";
|
path = "/etc/ppp/pap-secrets";
|
||||||
mode = "0440";
|
mode = "0440";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Setting default routes based on interfaces in different tables
|
# Setting default routes based on interfaces in different tables
|
||||||
environment.etc."ppp/ip-up" = {
|
environment.etc."ppp/ip-up" = {
|
||||||
text = ''
|
text = ''
|
||||||
@ -58,6 +59,8 @@
|
|||||||
${pkgs.iproute2}/bin/ip -6 route replace default dev ppp-uplink-b metric 1000
|
${pkgs.iproute2}/bin/ip -6 route replace default dev ppp-uplink-b metric 1000
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
${pkgs.systemd}/bin/systemctl restart dhcpcd.service
|
||||||
'';
|
'';
|
||||||
mode = "555";
|
mode = "555";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user