summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/dhcpmkconfig
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/stage3-stuff/bin/dhcpmkconfig')
-rwxr-xr-xinitramfs/stage3-stuff/bin/dhcpmkconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs/stage3-stuff/bin/dhcpmkconfig b/initramfs/stage3-stuff/bin/dhcpmkconfig
index b2b78496..fa01db75 100755
--- a/initramfs/stage3-stuff/bin/dhcpmkconfig
+++ b/initramfs/stage3-stuff/bin/dhcpmkconfig
@@ -14,6 +14,9 @@
# applet used within OpenSLX initramfs. The result is written to the
# /etc/initramfs-setup file
+# script started twice by udhcpc, quit fast if no ip configuration present
+[ -z "$ip" ] && exit 0
+
# heavy debugging output in level 3 and above ... and on 13
#FIXME: DEBUGLEVEL is not propagated to this file (at least for Ubuntu)
[ -z "$DEBUGLEVEL" ] && DEBUGLEVEL=0