#!/bin/sh

. /etc/os-release

set_val() {
	uci -q get "$1" > /dev/null || uci set "${1}=${2:-${3}}"
}

set_val ieee1905.ieee1905.manufacturer "$OPENWRT_DEVICE_MANUFACTURER" IOPSYS
set_val ieee1905.ieee1905.model_name "$(cat /tmp/sysinfo/model)" 1905-SampleDev
set_val ieee1905.ieee1905.device_name "$NAME" 1905Device

exit 0
