#!/bin/bash

PRODUCT_FAMILY=`cat /proc/device-tree/lantronix/product_id 2>/dev/null | tr -d '\n'`
if [[ "PRODUCT_FAMILY" == "U7" ]]; then
    uci set network.cellular.use_custom_apn1='1'
    uci set network.cellular.cid1='data641003'
    uci set network.cellular.retries='5'
    uci set network.cellular.toswitch='60'
    uci set network.cellular.forceswitch='0'
    uci commit network
fi
