config is in linux-container 1-4.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
_CONFFILE="/etc/default/linux-container"
if [ -e "${_CONFFILE}" ]
then
. ${_CONFFILE} || true
db_set linux-container/enable "${LINUX_CONTAINER_ENABLE}"
db_fset linux-container/enable seen false
fi
if [ -n "$(cat /etc/hostname 2> /dev/null)" ]
then
db_set linux-container/hostname "$(cat /etc/hostname)"
db_fset linux-container/hostname seen false
elif [ -x /usr/bin/lsb_release ]
then
db_set linux-container/hostname "$(lsb_release -is | tr [A-Z] [a-z])"
db_fset linux-container/hostname seen false
fi
db_settitle linux-container/title
db_input critical linux-container/enable || true
db_go
db_get linux-container/enable
LINUX_CONTAINER_ENABLE="${RET}" # boolean
case "${LINUX_CONTAINER_ENABLE}" in
false)
db_stop
exit 0
;;
esac
db_settitle linux-container/title
db_input low linux-container/consoles || true
db_go
db_settitle linux-container/title
db_input high linux-container/hostname || true
db_go
db_settitle linux-container/title
db_input high linux-container/eth0/dhcp || true
db_go
db_get linux-container/eth0/dhcp
LINUX_CONTAINER_ETH0_DHCP="${RET}" # boolean
case "${LINUX_CONTAINER_ETH0_DHCP}" in
false)
db_settitle linux-container/title
db_input high linux-container/eth0/address || true
db_go
db_settitle linux-container/title
db_input high linux-container/eth0/broadcast || true
db_go
db_settitle linux-container/title
db_input high linux-container/eth0/gateway || true
db_go
db_settitle linux-container/title
db_input high linux-container/eth0/netmask || true
db_go
db_settitle linux-container/title
db_input high linux-container/eth0/network || true
db_go
db_settitle linux-container/title
db_input high linux-container/eth0/post-up || true
db_go
db_settitle linux-container/title
db_input high linux-container/nameservers || true
db_go
;;
esac
db_settitle linux-container/title
db_input high linux-container/eth0/mtu || true
db_go
db_stop
|