File: network-console-menu

package info (click to toggle)
network-console 1.11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 584 kB
  • ctags: 6
  • sloc: sh: 102; makefile: 46; ansic: 38
file content (24 lines) | stat: -rwxr-xr-x 587 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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 menu' ]; then
	exec main-menu
elif [ "$RET" = 'Start shell' ]; then
	# WORKAROUND
	export UDPKG_QUIET=1
	exec udpkg --configure --force-configure di-utils-shell
fi