1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

Fix references to ifconfig and route

This commit is contained in:
Michael Raskin 2013-03-19 13:21:04 +04:00
parent ac807625a7
commit c306d2f899

View file

@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
rm $out/bin/gogoc.conf.sample
substituteInPlace "$out/template/linux.sh" \
--replace "/sbin/ifconfig" "${nettools}/sbin/ifconfig" \
--replace "/sbin/route" "${nettools}/sbin/route" \
--replace "/sbin/ifconfig" "${nettools}/bin/ifconfig" \
--replace "/sbin/route" "${nettools}/bin/route" \
--replace "/sbin/ip" "${iproute}/sbin/ip" \
--replace "/sbin/sysctl" "${procps}/sbin/sysctl"
sed -i -e 's/^.*Exec \$route -A.*$/& metric 128/' $out/template/linux.sh