blob: 69f8b9bae91b3f07e7115ecdd2286b8a61cae5e9 [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 Vlasenko1e9a4f52019-04-21 14:30:19 +020011ip link set dev "$if" up || exec sleep 5
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"