Skip to content

Instantly share code, notes, and snippets.

@bpetlert
Created March 19, 2022 21:27
Show Gist options
  • Save bpetlert/984093c20ed6650cd57820b7f60f8ce7 to your computer and use it in GitHub Desktop.
Save bpetlert/984093c20ed6650cd57820b7f60f8ce7 to your computer and use it in GitHub Desktop.
Get WAN uptime on OpenWrt
#!/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