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 13:58:18 +0100
commit229fff12282bf40e8de3f64d9e32c452d6cc78e1 (patch)
tree1e8ce69dee851c5049eb4a26f8da1851e9730668
parentfad68e06990907340d33f4915f8d84a84ceb0aea (diff)
downloadinitscripts-229fff12282bf40e8de3f64d9e32c452d6cc78e1.tar
initscripts-229fff12282bf40e8de3f64d9e32c452d6cc78e1.tar.gz
initscripts-229fff12282bf40e8de3f64d9e32c452d6cc78e1.tar.bz2
initscripts-229fff12282bf40e8de3f64d9e32c452d6cc78e1.tar.xz
initscripts-229fff12282bf40e8de3f64d9e32c452d6cc78e1.zip
ifup-routes: Revert quotes
Quotes were introduced in a71dcfd392cc1022c255208fdd94a0fc6c13ceb0 (cherry picked from commit f0171b8449033400db59a47a610124fc285dfe06) Resolves: #2040679
-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