Skip to content

Commit

Permalink
ifup-routes: Revert quotes
Browse files Browse the repository at this point in the history
Quotes were introduced in a71dcfd

Resolves: #2044189
  • Loading branch information
jamacku committed Jan 24, 2022
1 parent 28f50e5 commit f0171b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions network-scripts/ifup-routes
Expand Up @@ -22,9 +22,9 @@ handle_file () {
fi
line="$line dev $2"

/sbin/ip route add "$line" || {
/sbin/ip route add $line || {
net_log $"Failed to add route ${line}, using ip route replace instead." warning
/sbin/ip route replace "$line"
/sbin/ip route replace $line
}

routenum=$(($routenum+1))
Expand All @@ -41,11 +41,11 @@ handle_ip_file() {
fi
{ cat "$file" ; echo ; } | while read line; do
if [[ ! "$line" =~ $MATCH ]]; then
/sbin/ip $proto "$type" add "$line"
/sbin/ip $proto $type add $line

if [ $? != 0 ] && [ "$type" == "route" ] ; then
net_log $"Failed to add route ${line}, using ip route replace instead." warning
/sbin/ip $proto route replace "$line"
/sbin/ip $proto route replace $line
fi
fi
done
Expand Down

0 comments on commit f0171b8

Please sign in to comment.