#!/bin/sh /etc/rc.common

START=99

first=$(uci get system.firmware.first_login)
apcontroller=$(uci get apcontroller.capwap.enable)

start() {

	echo "System ready and check insight agent." > /dev/console
	logger "System ready and check insight agent." -t "notice_insight" -p 5

if [ "$first" == "1" -a "$apcontroller" == "1" ]; then
        sh /sbin/notify_insight_agent.sh
fi

}
