blob: 6998232461241e7e9142030281a6192d28ca23ab [file] [log] [blame]
Denys Vlasenkod32a1a42015-10-24 05:30:58 +02001#!/bin/sh
2
3exec 2>&1
4exec </dev/null
5
6pwd="$PWD"
7
8if="${PWD##*/zcip_}"
9
10echo "* Upping iface $if"
Denys Vlasenko1e474d32019-04-05 18:38:12 +020011ip link set dev "$if" up || { sleep 5; exit; }
Denys Vlasenkod32a1a42015-10-24 05:30:58 +020012
Denys Vlasenko1e474d32019-04-05 18:38:12 +020013echo "* Starting zcip on $if [$$]"
Denys Vlasenkod32a1a42015-10-24 05:30:58 +020014exec \
15env - PATH="$PATH" \
16softlimit \
17setuidgid root \
18zcip -fvv \
19 "$if" \
20 "$pwd/zcip_handler"