ls -l /etc/ppp/ip-up.d/
итого 12
-rwxr-xr-x 1 root root 891 2010-03-07 06:59 0000usepeerdns
-rwxr-xr-x 1 root root 4024 2009-02-20 20:56 0dns-up
-rwxrwxr-x 1 lon lon 116 2012-02-03 11:16 50-ping-google.sh
cat /etc/ppp/ip-up
# The environment is cleared before executing this script
# so the path must be reset
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
export PATH
# These variables are for the use of the scripts run by run-parts
PPP_IFACE="$1"
PPP_TTY="$2"
PPP_SPEED="$3"
PPP_LOCAL="$4"
PPP_REMOTE="$5"
PPP_IPPARAM="$6"
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
# as an additional convenience, $PPP_TTYNAME is set to the tty name,
# stripped of /dev/ (if present) for easier matching.
PPP_TTYNAME=`/usr/bin/basename "$2"`
export PPP_TTYNAME
# If /var/log/ppp-ipupdown.log exists use it for logging.
if [ -e /var/log/ppp-ipupdown.log ]; then
exec > /var/log/ppp-ipupdown.log 2>&1
echo $0 $*
echo
fi
# This script can be used to override the .d files supplied by other packages.
if [ -x /etc/ppp/ip-up.local ]; then
exec /etc/ppp/ip-up.local "$*"
fi
run-parts /etc/ppp/ip-up.d \
--arg="$1" --arg="$2" --arg="$3" --arg="$4" --arg="$5" --arg="$6"
# if pon was called with the "quick" argument, stop pppd
if [ -e /var/run/ppp-quick ]; then
rm /var/run/ppp-quick
wait
kill $PPPD_PID
fi
ps aux | grep ppp
lon 1099 0.5 5.8 84460 28704 ? S 09:53 0:30 kppp
root 1138 0.0 0.3 41292 1928 ? Ss 09:53 0:00 kppp
root 5280 0.0 0.2 3100 1256 ttyUSB0 Ss+ 11:21 0:00 pppd 460800 -detach crtscts defaultroute user mts
lon 5801 0.0 0.1 3348 868 pts/0 S+ 11:33 0:00 grep --color=auto ppp