2009-11-06 08:34:19 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
exec </dev/null
|
|
|
|
|
|
|
|
pwd="$PWD"
|
|
|
|
|
|
|
|
if="${PWD##*/dhcp_}"
|
|
|
|
|
|
|
|
echo "* Upping iface $if"
|
2019-04-21 18:00:19 +05:30
|
|
|
ip link set dev "$if" up || exec sleep 5
|
2009-11-06 08:34:19 +05:30
|
|
|
|
2019-04-05 22:08:12 +05:30
|
|
|
echo "* Starting udhcpc on $if [$$]"
|
2009-11-06 08:34:19 +05:30
|
|
|
exec \
|
|
|
|
env - PATH="$PATH" \
|
|
|
|
softlimit \
|
|
|
|
setuidgid root \
|
|
|
|
udhcpc -vv \
|
|
|
|
--hostname=null \
|
|
|
|
--foreground \
|
|
|
|
--interface="$if" \
|
|
|
|
--pidfile="$pwd/udhcpc.pid" \
|
|
|
|
--script="$pwd/dhcp_handler"
|