Package: whereami
Version: 0.3.20
Severity: normal
Tags: patch
When testdhcp uses dhclient3, it does not detect if no DHCP offer was obtained.
The reason
for this is that by default dhclient3 will go to the background in that case,
and return 0.
It can be made to exit with non-zero instead by passing the -1 command-line
option.
The patch is simply:
--- /tmp/testdhcp 2005-05-13 13:15:39.107870488 +0200
+++ /usr/share/whereami/tests/testdhcp 2005-05-13 10:42:46.000000000 +0200
@@ -143,7 +143,7 @@
case $1 in
start)
- $DHCLIENTPATH $QUIETFLAG $INTERFACE
+ $DHCLIENTPATH -1 $QUIETFLAG $INTERFACE
;;
stop)
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages whereami depends on:
ii debconf 1.4.30.13 Debian configuration management sy
ii iputils-ping 3:20020927-2 Tools to test the reachability of
ii netbase 4.21 Basic TCP/IP networking system
ii perl 5.8.4-8 Larry Wall's Practical Extraction
-- debconf information:
* whereami/how_to_configure:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]