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
1 changed files with 1 additions and 1 deletions

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"