#!/usr/bin/env bash

if [ $(id -u) -ne 0 ]; then
    exec sudo "$0"
fi

. firmware/tools/can_gateway/vcan_ifs.sh

for vcan_if in "${VCAN_IFS[@]}"; do
    ip link delete "$vcan_if" type vcan
done
