blob: aec79e027849f5aad4692144a4ed34229bb51693 [file] [log] [blame]
Denys Vlasenko6cf7f012009-11-06 04:04:19 +01001#!/bin/sh
2
3exec 2>&1
4exec </dev/null
5
6pwd="$PWD"
7
8if="${PWD##*/dhcp_}"
9
10echo "* Upping iface $if"
11ip link set dev "$if" up
12
13echo "* Starting udhcpc"
14exec \
15env - PATH="$PATH" \
16softlimit \
17setuidgid root \
18udhcpc -vv \
19--hostname=null \
20--foreground \
21--interface="$if" \
22--pidfile="$pwd/udhcpc.pid" \
23--script="$pwd/dhcp_handler"