blob: 94a8754650e8c2cc22847bc877d0b8aa9306ea78
1 | #!/bin/sh |
2 | |
3 | exec 2>&1 |
4 | exec </dev/null |
5 | |
6 | pwd="$PWD" |
7 | |
8 | if="${PWD##*/zcip_}" |
9 | |
10 | echo "* Upping iface $if" |
11 | ip link set dev "$if" up |
12 | |
13 | echo "* Starting zcip" |
14 | exec \ |
15 | env - PATH="$PATH" \ |
16 | softlimit \ |
17 | setuidgid root \ |
18 | zcip -fvv \ |
19 | "$if" \ |
20 | "$pwd/zcip_handler" |
21 |