#!/bin/sh

# Adds a default log rotate policy if none exists
if uci -q get logmngr.lro1 >/dev/null; then
	# return if there is any valid content
	exit 0
fi

uci set logmngr.lro1=log_rotate
uci set logmngr.lro1.enable=1
uci set logmngr.lro1.file_name="/var/log/messages"
uci set logmngr.lro1.file_count=1
uci set logmngr.lro1.max_file_size=1000000
