run 280 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. exec 2>&1
  3. exec </dev/null
  4. pwd="$PWD"
  5. if="${PWD##*/zcip_}"
  6. echo "* Upping iface $if"
  7. ip link set dev "$if" up || exec sleep 5
  8. echo "* Starting zcip on $if [$$]"
  9. exec \
  10. env - PATH="$PATH" \
  11. softlimit \
  12. setuidgid root \
  13. zcip -fvv \
  14. "$if" \
  15. "$pwd/zcip_handler"