[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#465901: [PATCH] configure_network: do nothing if device has been configured already



From: <debian@x.ray.net>

---
 scripts/functions |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/scripts/functions b/scripts/functions
index fdd808f..b4bd8cd 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -273,6 +273,9 @@ parse_numeric() {
 
 configure_networking()
 {
+	# networking already configured thus bail out
+	[ -e /tmp/net-${DEVICE}.conf ] && return 0
+
 	# support ip options see linux sources Documentation/nfsroot.txt
 	case ${IPOPTS} in
 	none|off)
-- 
1.5.3.8




Reply to: