aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2022-01-24 11:10:44 +0100
committerJan Macku <jamacku@redhat.com>2022-01-24 12:24:27 +0100
commitf0171b8449033400db59a47a610124fc285dfe06 (patch)
treef6a33717bbbdd98c979183a6fd219c923e4b8e13
parent28f50e5582f3641afac795e0e009fd22875b8dbb (diff)
downloadinitscripts-f0171b8449033400db59a47a610124fc285dfe06.tar
initscripts-f0171b8449033400db59a47a610124fc285dfe06.tar.gz
initscripts-f0171b8449033400db59a47a610124fc285dfe06.tar.bz2
initscripts-f0171b8449033400db59a47a610124fc285dfe06.tar.xz
initscripts-f0171b8449033400db59a47a610124fc285dfe06.zip
ifup-routes: Revert quotes
Quotes were introduced in a71dcfd392cc1022c255208fdd94a0fc6c13ceb0 Resolves: #2044189
-rwxr-xr-xnetwork-scripts/ifup-routes8
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