3
0

run 311 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. exec 2>&1
  3. exec </dev/null
  4. pwd="$PWD"
  5. if="${PWD##*/dhcpd_}"
  6. echo "* Upping iface $if"
  7. ip link set dev $if up
  8. >>udhcpd.leases
  9. sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf
  10. echo "* Starting udhcpd"
  11. exec \
  12. env - PATH="$PATH" \
  13. softlimit \
  14. setuidgid root \
  15. udhcpd -f -vv udhcpd.conf
  16. exit $?