Created
March 19, 2022 21:27
-
-
Save bpetlert/984093c20ed6650cd57820b7f60f8ce7 to your computer and use it in GitHub Desktop.
Get WAN uptime on OpenWrt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ubus call network.interface.wan status | grep uptime | sed 's/[^0-9]//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment