#!/bin/sh

WANUP=$(cat /proc/uptime | awk '{print $1}')
uci -P /var/state revert network.wan.uptime
uci -P /var/state set network.wan.uptime=$WANUP