| 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##*/zcip_}" |
| 9 | |
| 10 | echoscip-shell system . . echo. "* Upping iface $if" |
| 11 | ip link set dev "$if" up || exec sleep 5 |
| 12 | |
| 13 | echoscip-shell system . . echo. "* Starting zcip on $if [$$]" |
| 14 | exec \ |
| 15 | env - PATH="$PATH" \ |
| 16 | softlimit \ |
| 17 | setuidgid root \ |
| 18 | zcip -fvv \ |
| 19 | "$if" \ |
| 20 | "$pwd/zcip_handler" |