4 export PATH=/usr/bin:/usr/sbin:/sbin:/bin
6 frontend=noninteractive
11 while [ "$#" -ge 1 ]; do
16 if [ "$D" = "$P" ]; then
22 if [ -x "$ROOT$D/$1" ]; then
33 C=$(findcommandinroot "$1" "$2")
37 [ -n "$C" ] && chroot "$ROOT" "$C" "$@"
43 version=$(runcommandinroot "$root" dpkg-query -W --showformat='${Version}' "$package" 2>/dev/null) || version=""
45 if [ -z "$version" ]; then
46 echo >&2 "$0: package '$package' is not installed"
50 runcommandinroot "$root" dpkg-reconfigure -fnoninteractive --no-reload "$package"