[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cdebconf-slang-udeb for use in cdrom 2.88 MiB floppy?



[Matt Kraai]
> I'd say /sbin/debian-installer should set DEBIAN_FRONTEND to the
> fanciest available if the user hasn't already specified it:

Sounds like a good idea.  Something like this, and add a mechianism in
main-menu to exit it when a new frontend is required?

Index: src/sbin/debian-installer
===================================================================
RCS file: /cvs/debian-boot/debian-installer/rootskel/src/sbin/debian-installer,v
retrieving revision 1.7
diff -u -3 -p -u -r1.7 debian-installer
--- src/sbin/debian-installer   24 Nov 2002 11:17:48 -0000      1.7
+++ src/sbin/debian-installer   24 Jan 2003 23:41:32 -0000
@@ -9,4 +9,18 @@
 echo "\033[9;0]"

 /usr/bin/debconf-loadtemplate debian /var/lib/dpkg/info/*.templates
-/usr/share/debconf/frontend /usr/bin/main-menu
+
+while true do ; do
+    if [ -z "$DEBIAN_FRONTEND" ] ; then
+       for frontend in gtk slang text ; do
+           if [ -e "/usr/lib/cdebconf/frontend/$frontend.so" ] ; then
+               DEBIAN_FRONTEND=$frontend
+               export DEBIAN_FRONTEND
+               break
+           fi
+       done
+    fi
+
+    /usr/share/debconf/frontend /usr/bin/main-menu
+    # Let main-menu exit if a new frontend is installed.
+done



Reply to: