File: network-console-menu

package info (click to toggle)
network-console 1.51
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 872 kB
  • ctags: 8
  • sloc: sh: 193; ansic: 47; makefile: 14
file content (27 lines) | stat: -rwxr-xr-x 693 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

# Although main-menu now does the same, this is still needed as this script is
# run *before* main-menu and might not be in the correct language without it.
if db_get debconf/language && [ "$RET" ] ; then
        db_set debconf/language $RET
fi

TEMPLATE_ROOT=network-console

db_input critical $TEMPLATE_ROOT/login
db_go
db_get $TEMPLATE_ROOT/login

if [ "$RET" = 'Start installer' ]; then
	exec main-menu
elif [ "$RET" = 'Start installer (expert mode)' ]; then
	db_set debconf/priority low
	exec main-menu
elif [ "$RET" = 'Start shell' ]; then
	# WORKAROUND
	export UDPKG_QUIET=1
	exec udpkg --configure --force-configure di-utils-shell
fi