Subject: [alpine-devel] Patch for aports/main/busybox-initscripts

From: Alex <[email-masked]>
Date: Fri, 1 Aug 2014 15:14:51 +0200

Hi,

udhcpc displays a misleading and confusing message when it fails to get a
DHCP lease. This patch improves things.

Thanks, AD
From 4916464d03a5fd1da9eb5a696e4b8236c9adfe5b Mon Sep 17 00:00:00 2001
From: Alex Dowad <[email-masked]>
Date: Fri, 1 Aug 2014 13:21:52 +0200
Subject: [PATCH] main/busybox-initscripts: avoid misleading error message from
 udhcp default.script

---
 main/busybox-initscripts/default.script | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/main/busybox-initscripts/default.script b/main/busybox-initscripts/default.script
index f5d5f61..fcfaa17 100644
--- a/main/busybox-initscripts/default.script
+++ b/main/busybox-initscripts/default.script
@@ -123,6 +123,12 @@ case "$1" in
 		$1
 		run_scripts $UDHCPC/post-$1
 		;;
+	leasefail)
+		echo "udhcpc failed to get a DHCP lease" >&2
+		;;
+	nak)
+		echo "udhcpc received DHCP NAK" >&2
+		;;
 	*)
 		echo "Error: this script should be called from udhcpc" >&2
 		exit 1
-- 
2.0.0.GIT