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:
parent
ac807625a7
commit
c306d2f899
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue