#!/bin/sh

. /lib/functions.sh

log() {
	echo "$*"|logger -t obuspa.firewall -p debug
}

config_load obuspa
config_get_bool enable_obuspa global enabled 1

if [ "$enable_obuspa" = "0" ]; then
	return 0;
fi

sleep 1
log "Sending WakeUp! event to re-connect after firewall restart"
obuspa -c event "Device.LocalAgent.WakeUp!"
