Here's an updated version of the patch with an important error fixed (error 
check was on the wrong line).

Cheers,
FJP

commit 64bb5893fd96f076a945d1c1c0dd5d514aa29e4f
Author: Frans Pop <[EMAIL PROTECTED]>
Date:   Tue Apr 8 16:18:07 2008 +0200

    ppp-udeb: allow for preseeding of the netcfg/get_hostname template

diff --git a/debian/changelog b/debian/changelog
index b423b40..5e5be60 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ppp (2.4.4rel-9.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * ppp-udeb: allow for preseeding of the netcfg/get_hostname template.
+    Closes: #455366.
+
+ -- Frans Pop <[EMAIL PROTECTED]>  Tue, 08 Apr 2008 16:15:53 +0200
+
 ppp (2.4.4rel-9) unstable; urgency=low
 
   * ppp-udeb: quote username and password in pap/chap secrets since they
diff --git a/debian/ppp-udeb.postinst b/debian/ppp-udeb.postinst
index 4d9e653..899357f 100644
--- a/debian/ppp-udeb.postinst
+++ b/debian/ppp-udeb.postinst
@@ -169,14 +169,14 @@ db_unregister ppp/username
 
 # Ask for the hostname to use for the system (using the netcfg template!)
 while true; do
-	db_input high netcfg/get_hostname
+	db_input high netcfg/get_hostname || [ $? -eq 30 ]
 	db_go || exit 10
 	db_get netcfg/get_hostname
 	HOSTNAME="$RET"
 	if valid_hostname "$HOSTNAME"; then
 		break
 	fi
-	db_input high netcfg/invalid_hostname
+	db_input high netcfg/invalid_hostname || true
 	db_fset netcfg/get_hostname seen false
 done
 

Reply via email to