If the date is changed by ntp the age value of mwan3 on ubus could jitter. Use instead the uptime value from /proc/uptime which will not change during system run. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 lines
84 B
Bash
6 lines
84 B
Bash
#!/bin/sh
|
|
|
|
get_uptime() {
|
|
local uptime=$(cat /proc/uptime)
|
|
echo "${uptime%%.*}"
|
|
}
|