summaryrefslogtreecommitdiffstats
path: root/projectroot/usr/bin/pon
blob: 70b86a9f44a71e957f815184a6f6e63e1dd11fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

PROVIDER="${1}"

if [ -z "${PROVIDER}" ]; then
    if [ -n "${IF_PROVIDER}" ]; then
	PROVIDER="${IF_PROVIDER}"
    else
	PROVIDER=provider
    fi
else
    shift
fi

exec start-stop-daemon -S -x /usr/sbin/pppd -- call "${PROVIDER}" "${@}"