Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / lib / tasksel / | server ip : 104.21.89.46 your ip : 172.70.179.197 H O M E |
Filename | /usr/lib/tasksel/disconnect |
Size | 1.29 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:52 |
Last modified | 04-Apr-2014 20:58 |
Last accessed | 05-Jul-2025 15:46 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#! /bin/sh
#
# Run a program disconnected from debconf, in a usable terminal. Used to
# start aptitude when running within d-i.
#
# This is similar to debian-installer-utils/start-shell, but modified for
# tasksel: for example, we cope with already being disconnected from
# debconf, handle templates differently, and can expect that the terminal
# plugin is available if we're connected to debconf.
set -e
if [ -z "$DEBIAN_HAS_FRONTEND" ] && [ -z "$DEBCONF_READFD" ]; then
# We're already disconnected from debconf. Just run the program.
exec "$@"
exit 127
fi
# This is only used following Test-Debconf: false, so we can assume that we
# must have the terminal plugin.
. /usr/share/debconf/confmodule
db_capb
db_subst tasksel/terminal TITLE "$1"
# Specific to d-i; for the moment, we assume that if we're outside d-i then
# we won't need to use the terminal plugin. We have to do some manual
# passthrough of environment variables as in-target can't be used
# re-entrantly; it would be nice to fix this at some point.
db_subst tasksel/terminal COMMAND_LINE \
"chroot /target env http_proxy=$http_proxy DEBIAN_PRIORITY=$DEBIAN_PRIORITY LANG=$LANG DEBCONF_ADMIN_EMAIL= APT_LISTCHANGES_FRONTEND=none $*"
db_fset tasksel/terminal seen false
db_input critical tasksel/terminal
db_go || true
db_capb backup
exit 0
#
# Run a program disconnected from debconf, in a usable terminal. Used to
# start aptitude when running within d-i.
#
# This is similar to debian-installer-utils/start-shell, but modified for
# tasksel: for example, we cope with already being disconnected from
# debconf, handle templates differently, and can expect that the terminal
# plugin is available if we're connected to debconf.
set -e
if [ -z "$DEBIAN_HAS_FRONTEND" ] && [ -z "$DEBCONF_READFD" ]; then
# We're already disconnected from debconf. Just run the program.
exec "$@"
exit 127
fi
# This is only used following Test-Debconf: false, so we can assume that we
# must have the terminal plugin.
. /usr/share/debconf/confmodule
db_capb
db_subst tasksel/terminal TITLE "$1"
# Specific to d-i; for the moment, we assume that if we're outside d-i then
# we won't need to use the terminal plugin. We have to do some manual
# passthrough of environment variables as in-target can't be used
# re-entrantly; it would be nice to fix this at some point.
db_subst tasksel/terminal COMMAND_LINE \
"chroot /target env http_proxy=$http_proxy DEBIAN_PRIORITY=$DEBIAN_PRIORITY LANG=$LANG DEBCONF_ADMIN_EMAIL= APT_LISTCHANGES_FRONTEND=none $*"
db_fset tasksel/terminal seen false
db_input critical tasksel/terminal
db_go || true
db_capb backup
exit 0