#!/bin/sh . /lib/functions.sh # uci_ lib works on temporary config files here which are not persistent UCI_CONFIG_DIR=/var/run CONFIG=plc-standby STANDBY_TIMER=${1:-600} SWITCHED_OFF=0 if [ -f /lib/ar71xx.sh ]; then PLATFORM=ar71xx . /lib/ar71xx.sh elif [ -f /lib/ipq806x.sh ]; then PLATFORM=ipq806x . /lib/ipq806x.sh fi board=$(${PLATFORM}_board_name) uptime_seconds() { (IFS="." read a b