router (ppp): set explicit executable paths for ip in pppd scripts
This commit is contained in:
parent
639faa93d8
commit
431f07bf9a
@ -10,14 +10,14 @@
|
|||||||
text = ''
|
text = ''
|
||||||
#! ${pkgs.runtimeShell} -e
|
#! ${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
case $IFNAME in
|
case $1 in
|
||||||
ppp-uplink-a)
|
ppp-uplink-a)
|
||||||
ip route flush table 20001 || true
|
${pkgs.iproute2}/bin/ip route flush table 20001 || true
|
||||||
ip route add default dev ppp-uplink-a table 20001
|
${pkgs.iproute2}/bin/ip route add default dev ppp-uplink-a table 20001
|
||||||
;;
|
;;
|
||||||
ppp-uplink-b)
|
ppp-uplink-b)
|
||||||
ip route flush table 20002 || true
|
${pkgs.iproute2}/bin/ip route flush table 20002 || true
|
||||||
ip route add default dev ppp-uplink-b table 20002
|
${pkgs.iproute2}/bin/ip route add default dev ppp-uplink-b table 20002
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
@ -27,12 +27,12 @@
|
|||||||
text = ''
|
text = ''
|
||||||
#! ${pkgs.runtimeShell} -e
|
#! ${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
case $IFNAME in
|
case $1 in
|
||||||
ppp-uplink-a)
|
ppp-uplink-a)
|
||||||
ip route flush table 20001 || true
|
${pkgs.iproute2}/bin/ip route flush table 20001 || true
|
||||||
;;
|
;;
|
||||||
ppp-uplink-b)
|
ppp-uplink-b)
|
||||||
ip route flush table 20002 || true
|
${pkgs.iproute2}/bin/ip route flush table 20002 || true
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
@ -42,14 +42,14 @@
|
|||||||
text = ''
|
text = ''
|
||||||
#! ${pkgs.runtimeShell} -e
|
#! ${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
case $IFNAME in
|
case $1 in
|
||||||
ppp-uplink-a)
|
ppp-uplink-a)
|
||||||
ip -6 route flush table 20001 || true
|
${pkgs.iproute2}/bin/ip -6 route flush table 20001 || true
|
||||||
ip -6 route add default dev ppp-uplink-a table 20001
|
${pkgs.iproute2}/bin/ip -6 route add default dev ppp-uplink-a table 20001
|
||||||
;;
|
;;
|
||||||
ppp-uplink-b)
|
ppp-uplink-b)
|
||||||
ip -6 route flush table 20002 || true
|
${pkgs.iproute2}/bin/ip -6 route flush table 20002 || true
|
||||||
ip -6 route add default dev ppp-uplink-b table 20002
|
${pkgs.iproute2}/bin/ip -6 route add default dev ppp-uplink-b table 20002
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
@ -59,12 +59,12 @@
|
|||||||
text = ''
|
text = ''
|
||||||
#! ${pkgs.runtimeShell} -e
|
#! ${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
case $IFNAME in
|
case $1 in
|
||||||
ppp-uplink-a)
|
ppp-uplink-a)
|
||||||
ip -6 route flush table 20001 || true
|
${pkgs.iproute2}/bin/ip -6 route flush table 20001 || true
|
||||||
;;
|
;;
|
||||||
ppp-uplink-b)
|
ppp-uplink-b)
|
||||||
ip -6 route flush table 20002 || true
|
${pkgs.iproute2}/bin/ip -6 route flush table 20002 || true
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user