diff options
author | Jan Macku <jamacku@redhat.com> | 2022-01-24 11:10:44 +0100 |
---|---|---|
committer | Jan Macku <jamacku@redhat.com> | 2022-01-24 13:39:28 +0100 |
commit | f394ff7d57d8a2a1197fa76bd689b68956d44965 (patch) | |
tree | d59b89bff4ec7be1bfe9768c3e1183832563bb50 | |
parent | 1151f3ee6dc1f1f890f78b5ea8eedfa7edab3190 (diff) | |
download | initscripts-f394ff7d57d8a2a1197fa76bd689b68956d44965.tar initscripts-f394ff7d57d8a2a1197fa76bd689b68956d44965.tar.gz initscripts-f394ff7d57d8a2a1197fa76bd689b68956d44965.tar.bz2 initscripts-f394ff7d57d8a2a1197fa76bd689b68956d44965.tar.xz initscripts-f394ff7d57d8a2a1197fa76bd689b68956d44965.zip |
ifup-routes: Revert quotes
Quotes were introduced in a71dcfd392cc1022c255208fdd94a0fc6c13ceb0
(cherry picked from commit f0171b8449033400db59a47a610124fc285dfe06)
Resolves: #2034799
-rwxr-xr-x | network-scripts/ifup-routes | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/network-scripts/ifup-routes b/network-scripts/ifup-routes index 4a90ad07..45fd125c 100755 --- a/network-scripts/ifup-routes +++ b/network-scripts/ifup-routes @@ -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)) @@ -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 |