config is in libphone-utils0 0.1+git20110523-2.1.
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 | #!/bin/sh -e
# config script for libphone-utils
. /usr/share/debconf/confmodule
if [ -s /etc/phone-utils.conf ] ; then
INTERNATIONAL=$(cat /etc/phone-utils.conf | grep -E "^international_prefix" | head -n 1 | cut -d "=" -f 2)
NATIONAL=$(cat /etc/phone-utils.conf | grep -E "^national_prefix" | head -n 1 | cut -d "=" -f 2)
COUNTRY=$(cat /etc/phone-utils.conf | grep country_code | head -n 1 | cut -d "=" -f 2)
AREA=$(cat /etc/phone-utils.conf | grep area_code | head -n 1 | cut -d "=" -f 2)
if [ -n "$INTERNATIONAL" ] ; then
db_set libphone-utils/international_prefix "$INTERNATIONAL"
fi
if [ -n "$NATIONAL" ] ; then
db_set libphone-utils/national_prefix "$NATIONAL"
fi
if [ -n "$COUNTRY" ] ; then
db_set libphone-utils/country_code "$COUNTRY"
fi
if [ -n "$AREA" ] ; then
db_set libphone-utils/area_code "$AREA"
fi
fi
db_input high libphone-utils/international_prefix || true
db_go
db_input high libphone-utils/national_prefix || true
db_go
db_input high libphone-utils/country_code || true
db_go
db_input high libphone-utils/area_code || true
db_go
|