2015-10-24 05:30:58 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
exec </dev/null
|
|
|
|
|
|
|
|
pwd="$PWD"
|
|
|
|
|
|
|
|
if="${PWD##*/zcip_}"
|
|
|
|
|
|
|
|
echo "* Upping iface $if"
|
2019-04-21 14:30:19 +02:00
|
|
|
ip link set dev "$if" up || exec sleep 5
|
2015-10-24 05:30:58 +02:00
|
|
|
|
2019-04-05 18:38:12 +02:00
|
|
|
echo "* Starting zcip on $if [$$]"
|
2015-10-24 05:30:58 +02:00
|
|
|
exec \
|
|
|
|
env - PATH="$PATH" \
|
|
|
|
softlimit \
|
|
|
|
setuidgid root \
|
|
|
|
zcip -fvv \
|
|
|
|
"$if" \
|
|
|
|
"$pwd/zcip_handler"
|