config is in ipppd 1:3.25+dfsg1-3.3ubuntu2.
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 | #!/bin/sh
# Source debconf library.
. /usr/share/debconf/confmodule
set -e
loop=true
while $loop; do
db_input low ipppd/whichif || true
db_go
db_get ipppd/whichif || true
case "x$RET" in
x|xnone|xmanual)
# db_set ipppd/ispphone 'manual'
# db_go
exit 0 # don't do anything
;;
xippp[0-9]|xippp[1-5][0-9]|xippp6[0-3])
loop=false
;;
*)
db_input low ipppd/wrongif || true
db_go
;;
esac
done
ipppd_if="$RET"
if [ -s "/etc/isdn/device.$ipppd_if" -o -s "/etc/isdn/ipppd.$ipppd_if" ]; then
db_subst ipppd/ispwontdoit IPPP0 "$ipppd_if" || true
db_input high ipppd/ispwontdoit || true
# db_set ipppd/ispphone 'manual'
db_go
exit 0 # files are there, not touching
fi
db_input high ipppd/ispphone || true
status=0
db_go || status=$?
if [ $status -eq 30 ]; then
db_stop
exit 0 # cancel selected
fi
RET=''
db_get ipppd/ispphone || true
if [ "$RET" = '' -o "$RET" = none -o "$RET" = blank -o "$RET" = manual ]; then
db_stop
exit 0 # no configuration wanted
fi
db_input medium ipppd/eaz || true
db_input high ipppd/isplogin || true
db_input high ipppd/isppasswd || true
db_go
RET=''
db_get ipppd/isplogin || true
if grep "^$RET[ ]" /etc/ppp/pap-secrets >/dev/null 2>&1; then
if grep "^$RET[ ]" /etc/ppp/chap-secrets >/dev/null 2>&1; then
db_input high ipppd/isploginpapchapalreadythere || true
else
db_input high ipppd/isploginpapalreadythere || true
fi
db_go
else
if grep "^$RET[ ]" /etc/ppp/chap-secrets >/dev/null 2>&1; then
db_input high ipppd/isploginchapalreadythere || true
db_go
fi
fi
db_stop
exit 0
|