#!/bin/sh
HOOK=$1
INTERFACE=$2
if [ "$HOOK" = session.up ]; then
ip l s dev $INTERFACE up
batctl if add $INTERFACE
fi