#!/bin/sh

# Check if the configuration was be applied
applied=$(uci get system.@system[0].linkup_optimization 2>/dev/null)
if [ "$applied" = "1" ]; then
    exit 0
fi

# Imposta il flag globale come completato
uci set system.@system[0].linkup_optimization=1
uci commit

exit 0