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