1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

networking.routes: static routes are proto static

This commit is contained in:
Robin Gloster 2018-05-22 03:15:22 +02:00
parent 852fa6b86f
commit a32b6d5c9a
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -209,7 +209,7 @@ let
''
echo "${cidr}" >> $state
echo -n "adding route ${cidr}... "
if out=$(ip route add "${cidr}" ${options} ${via} dev "${i.name}" 2>&1); then
if out=$(ip route add "${cidr}" ${options} ${via} dev "${i.name}" proto static 2>&1); then
echo "done"
elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
echo "'ip route add "${cidr}" ${options} ${via} dev "${i.name}"' failed: $out"