#! /bin/sh
# Copyright 2016, 2017, 2018, Cumulus Networks, Inc.  All rights reserved.

NAME=cl-acltool

cachedir=/run/cache/cumulus/acltool
mkdir -p $cachedir
rm -f $cachedir/installed $cachedir/acltool.out

if [ -e /etc/cumulus/switchd.env ]; then
    . /etc/cumulus/switchd.env
fi

if [ "$VX" = "-vx" ]; then
    /usr/cumulus/bin/$NAME -i --no-hw-sync --log=syslog
else
    /usr/cumulus/bin/$NAME -i --hw-wait=30 --log=syslog
fi

exit $?
