Package: ppp-udeb
Version: 2.4.4rel-9
Severity: wishlist
Tags: patch

Hi!

If a PPPoE server does not send any DNS IP, ppp-udeb will not set any
nameserver in resolv.conf, thus making the rest of the installation
process likely to fail.

The attached patch solves this issue by using the value of
netcfg/get_nameservers as a fallback.  This allows to preseed a fallback
DNS, solving this problem.

Cheers,
-- 
Jérémy Bobbio                        .''`. 
[EMAIL PROTECTED]                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -u ppp-2.4.4rel/debian/changelog ppp-2.4.4rel/debian/changelog
--- ppp-2.4.4rel/debian/changelog
+++ ppp-2.4.4rel/debian/changelog
@@ -1,3 +1,11 @@
+ppp (2.4.4rel-10) UNRELEASED; urgency=low
+
+  [ Jérémy Bobbio ]
+  * Handle the setting of fallback DNS in ppp-udeb.  Those are set by
+    preseeding netcfg/get_nameservers.
+
+ -- Jérémy Bobbio <[EMAIL PROTECTED]>  Tue, 01 Apr 2008 18:15:15 +0200
+
 ppp (2.4.4rel-9) unstable; urgency=low
 
   * ppp-udeb: quote username and password in pap/chap secrets since they
diff -u ppp-2.4.4rel/debian/ppp-udeb.postinst ppp-2.4.4rel/debian/ppp-udeb.postinst
--- ppp-2.4.4rel/debian/ppp-udeb.postinst
+++ ppp-2.4.4rel/debian/ppp-udeb.postinst
@@ -316,6 +316,14 @@
 	db_input critical ppp/unhandled || true
 	db_go || true
 	exit 1
+else
+	# Handle a fallback DNS
+	if ! [ -s /etc/resolv.conf ] &&
+	   db_get netcfg/get_nameservers; then
+		for nameserver in $RET; do
+			echo "nameserver $nameserver" >>/etc/resolv.conf
+		done
+	fi
 fi
 
 #DEBHELPER#

Attachment: signature.asc
Description: Digital signature

Reply via email to