#!/bin/sh
# Copyright (c) 2016 Qualcomm Atheros, Inc.
#
# All Rights Reserved.
# Qualcomm Atheros Confidential and Proprietary.

[ "$ACTION" = ifup ] || exit 0

. /lib/functions/repacd-netdet.sh

if [ $(uci get repacd.repacd.EnableEthernetMonitoring) -eq 1 ] && ps | grep lldpd > /dev/null; then
	repacd_netdet_lldpd_init restart
fi
