OpenWRT uptime

This commit is contained in:
Dylan Araps 2016-08-26 10:19:05 +10:00
parent 377b5a048d
commit ad53cc8bfc

View file

@ -151,7 +151,7 @@ getuptime() {
case "$os" in case "$os" in
"Linux" | "Windows") "Linux" | "Windows")
case "$distro" in case "$distro" in
*"Puppy"* | "Quirky Werewolf"* | "Alpine Linux"* | "Windows"*) *"Puppy"* | "Quirky Werewolf"* | "Alpine Linux"* | "OpenWRT"* | "Windows"*)
uptime="$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')" uptime="$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')"
;; ;;