1
0

router (ppp): set explicit executable paths for ip in pppd scripts

This commit is contained in:
clerie 2022-07-23 17:55:31 +02:00
parent 639faa93d8
commit 431f07bf9a

View File

@ -10,14 +10,14 @@
text = ''
#! ${pkgs.runtimeShell} -e
case $IFNAME in
case $1 in
ppp-uplink-a)
ip route flush table 20001 || true
ip route add default dev ppp-uplink-a table 20001
${pkgs.iproute2}/bin/ip route flush table 20001 || true
${pkgs.iproute2}/bin/ip route add default dev ppp-uplink-a table 20001
;;
ppp-uplink-b)
ip route flush table 20002 || true
ip route add default dev ppp-uplink-b table 20002
${pkgs.iproute2}/bin/ip route flush table 20002 || true
${pkgs.iproute2}/bin/ip route add default dev ppp-uplink-b table 20002
;;
esac
'';
@ -27,12 +27,12 @@
text = ''
#! ${pkgs.runtimeShell} -e
case $IFNAME in
case $1 in
ppp-uplink-a)
ip route flush table 20001 || true
${pkgs.iproute2}/bin/ip route flush table 20001 || true
;;
ppp-uplink-b)
ip route flush table 20002 || true
${pkgs.iproute2}/bin/ip route flush table 20002 || true
;;
esac
'';
@ -42,14 +42,14 @@
text = ''
#! ${pkgs.runtimeShell} -e
case $IFNAME in
case $1 in
ppp-uplink-a)
ip -6 route flush table 20001 || true
ip -6 route add default dev ppp-uplink-a table 20001
${pkgs.iproute2}/bin/ip -6 route flush table 20001 || true
${pkgs.iproute2}/bin/ip -6 route add default dev ppp-uplink-a table 20001
;;
ppp-uplink-b)
ip -6 route flush table 20002 || true
ip -6 route add default dev ppp-uplink-b table 20002
${pkgs.iproute2}/bin/ip -6 route flush table 20002 || true
${pkgs.iproute2}/bin/ip -6 route add default dev ppp-uplink-b table 20002
;;
esac
'';
@ -59,12 +59,12 @@
text = ''
#! ${pkgs.runtimeShell} -e
case $IFNAME in
case $1 in
ppp-uplink-a)
ip -6 route flush table 20001 || true
${pkgs.iproute2}/bin/ip -6 route flush table 20001 || true
;;
ppp-uplink-b)
ip -6 route flush table 20002 || true
${pkgs.iproute2}/bin/ip -6 route flush table 20002 || true
;;
esac
'';