Fixed uptime on OpenWRT

This commit is contained in:
dawidd6 2016-08-25 16:36:08 +02:00
parent aaefe224fc
commit fdf1e52835
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B

View file

@ -150,7 +150,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}')"
;; ;;