|
|
e83cdd |
From fa15223b70c04de0fdbd209a4bb1cb74876f7cfb Mon Sep 17 00:00:00 2001
|
|
|
e83cdd |
From: Jonathan Lebon <jonathan@jlebon.com>
|
|
|
e83cdd |
Date: Wed, 19 Feb 2020 11:11:32 -0500
|
|
|
e83cdd |
Subject: [PATCH] network-legacy/ifup: drop redundant if-statement
|
|
|
e83cdd |
|
|
|
e83cdd |
No need to check that `$ret` is 0, we're already running inside an
|
|
|
e83cdd |
if-statement block which checks this.
|
|
|
e83cdd |
|
|
|
e83cdd |
(cherry picked from commit 7795fde44c54bfe753cc07999a4c2f9dd7e2820d)
|
|
|
e83cdd |
|
|
|
e83cdd |
Resolves: #1807395
|
|
|
e83cdd |
---
|
|
|
e83cdd |
modules.d/35network-legacy/ifup.sh | 10 ++++------
|
|
|
e83cdd |
1 file changed, 4 insertions(+), 6 deletions(-)
|
|
|
e83cdd |
|
|
|
e83cdd |
diff --git a/modules.d/35network-legacy/ifup.sh b/modules.d/35network-legacy/ifup.sh
|
|
|
e83cdd |
index dd18d70b..eb7d2eb4 100755
|
|
|
e83cdd |
--- a/modules.d/35network-legacy/ifup.sh
|
|
|
e83cdd |
+++ b/modules.d/35network-legacy/ifup.sh
|
|
|
e83cdd |
@@ -457,12 +457,10 @@ for p in $(getargs ip=); do
|
|
|
e83cdd |
dhcp|on|any|dhcp6)
|
|
|
e83cdd |
;;
|
|
|
e83cdd |
*)
|
|
|
e83cdd |
- if [ $ret -eq 0 ]; then
|
|
|
e83cdd |
- setup_net $netif
|
|
|
e83cdd |
- source_hook initqueue/online $netif
|
|
|
e83cdd |
- if [ -z "$manualup" ]; then
|
|
|
e83cdd |
- /sbin/netroot $netif
|
|
|
e83cdd |
- fi
|
|
|
e83cdd |
+ setup_net $netif
|
|
|
e83cdd |
+ source_hook initqueue/online $netif
|
|
|
e83cdd |
+ if [ -z "$manualup" ]; then
|
|
|
e83cdd |
+ /sbin/netroot $netif
|
|
|
e83cdd |
fi
|
|
|
e83cdd |
;;
|
|
|
e83cdd |
esac
|
|
|
e83cdd |
|