/etc/ppp/ip-up.d/1masqmail is in masqmail 0.2.30-1.
This file is owned by root:root, with mode 0o755.
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 | #!/bin/sh
# Exit if package was removed but not purged.
test -x /usr/sbin/masqmail || exit 0
# defaults, do not edit here but in
# /etc/default/masqmail
IPUP_RUNQUEUE=true
IPUP_FETCH=true
[ -r /etc/default/masqmail ] && . /etc/default/masqmail
if [ -n "$PPP_IFACE" ]; then
SCHEME="$PPP_IPPARAM"
IFACE=$PPP_IFACE
else
SCHEME="${IF_MROUTE:-$IF_NAME}"
fi
if [ ! x"$IFUP_IFACES" = x"all" ] ; then
echo $IFUP_IFACES | grep $IFACE > /dev/null || exit 0
fi
DETECT="`awk -F'[ \t]*=[ \t]*' '/^online_detect/ \
{ print split($2,A,\"\\\"\") == 3 ? A[2] : $2 }' /etc/masqmail/masqmail.conf`"
if [ x"$DETECT" = x"file" ] ; then
ROUTEFILE="`awk -F'[ \t]*=[ \t]*' '/^online_file/ \
{ print split($2,A,\"\\\"\") == 3 ? A[2] : $2 }' /etc/masqmail/masqmail.conf`"
if [ -z "$ROUTEFILE" ]; then
echo "no online_file defined in /etc/masqmail/masqmail.conf"
exit 1
fi
fi
if [ -z "$MODE" ]; then
case `dirname "$0"` in
*/if-up.d|*/ip-up.d)
MODE=start;
;;
*/if-down.d|*/ip-down.d)
MODE=stop;
;;
esac
fi
case "$MODE" in
start)
if [ -n "$SCHEME" ] ; then
echo -n "$SCHEME" > "$ROUTEFILE"
chmod 0644 "$ROUTEFILE"
else
echo -n "$PPP_IFACE" > "$ROUTEFILE"
chmod 0644 "$ROUTEFILE"
fi
if [ x"$IPUP_RUNQUEUE" = x"true" ] ; then
/usr/sbin/masqmail -qo &
fi
if [ x"$IPUP_FETCH" = x"true" ] ; then
/usr/sbin/masqmail -go &
fi
;;
stop)
rm -f "$ROUTEFILE"
;;
*)
echo "$0: unknown MODE"
;;
esac
exit 0
|