diff options
Diffstat (limited to 'examples/var_service/zcip_if/run')
-rwxr-xr-x | examples/var_service/zcip_if/run | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/var_service/zcip_if/run b/examples/var_service/zcip_if/run new file mode 100755 index 000000000..94a875465 --- /dev/null +++ b/examples/var_service/zcip_if/run | |||
@@ -0,0 +1,20 @@ | |||
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" | ||