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
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ getuptime() {
case "$os" in
"Linux" | "Windows")
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}')"
;;