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

DEV="${1}"

if [ -z "${DEV}" ]; then
    if [ -n "${IFACE}" ]; then
	DEV="${IFACE}"
    else
	DEV=ppp0
    fi
else
    shift
fi

exec /sbin/start-stop-daemon -K -p /var/run/${DEV}.pid