#!/bin/sh
set -x

# convert static_domain from kresd to common section
stat_dom=$(uci -q get resolver.kresd.static_domains)
if [ ! -z "$stat_dom" ]; then
	uci set resolver.common.static_domains="$stat_dom"
	uci delete resolver.kresd.static_domains
	uci commit resolver
fi

/etc/init.d/resolver restart
