blob: 882f008d633e448b01c8e44fd4df0a4777300e0f [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"
Denys Vlasenko1e9a4f52019-04-21 14:30:19 +020011ip link set dev "$if" up || exec sleep 5
Denys Vlasenko6cf7f012009-11-06 04:04:19 +010012
Denys Vlasenko1e474d32019-04-05 18:38:12 +020013echo "* Starting udhcpc on $if [$$]"
Denys Vlasenko6cf7f012009-11-06 04:04:19 +010014exec \
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"