Debian Codegraph @

network-console-menu

raw
1 #!/bin/sh
2 set -e
3
4 . /usr/share/debconf/confmodule
5
6 # Although main-menu now does the same, this is still needed as this script is
7 # run *before* main-menu and might not be in the correct language without it.
8 if db_get debconf/language && [ "$RET" ] ; then
9 db_set debconf/language $RET
10 fi
11
12 TEMPLATE_ROOT=network-console
13
14 db_input critical $TEMPLATE_ROOT/login
15 db_go
16 db_get $TEMPLATE_ROOT/login
17
18 if [ "$RET" = 'Start installer' ]; then
19 exec main-menu
20 elif [ "$RET" = 'Start installer (expert mode)' ]; then
21 db_set debconf/priority low
22 exec main-menu
23 elif [ "$RET" = 'Start shell' ]; then
24 # WORKAROUND
25 export UDPKG_QUIET=1
26 exec udpkg --configure --force-configure di-utils-shell
27 fi