| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | exec 2>&1 |
| 4 | exec </dev/nullscip-shell filesystem . . `/dev/null`. |
| 5 | |
| 6 | pwd="$PWD" |
| 7 | |
| 8 | if="${PWD##*/dhcpd_}" |
| 9 | |
| 10 | echoscip-shell system . . echo. "* Upping iface $if" |
| 11 | ip link set dev $if up || exec sleep 5 |
| 12 | |
| 13 | >>udhcpd.leases |
| 14 | sedscip-shell system . . sed. 's/^interface.*$/interface '"$if/" -i udhcpd.conf |
| 15 | |
| 16 | echoscip-shell system . . echo. "* Starting udhcpd on $if [$$]" |
| 17 | exec \ |
| 18 | env - PATH="$PATH" \ |
| 19 | softlimit \ |
| 20 | setuidgid root \ |
| 21 | udhcpd -f -vv udhcpd.conf |
| 22 | |
| 23 | exit $? |