#!/bin/sh

. /lib/functions.sh

adapt_cntlr_sel() {
	local section=$1
        id=$(uci -q get mapagent.@controller_select[0].id)

        uci -q del mapagent.@controller_select[0].id

        # re-apply any custom value
        [ -z "${id}" ] || uci -q set mapagent.@controller_select[0].mode="${id}"
}

adapt_cntlr_sel