distro: fix OpenWrt/LEDE detection

This commit is contained in:
Dawid Dziurla 2018-01-12 21:18:13 +01:00
parent fb33604a22
commit 8e21a69ea0
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
1 changed files with 2 additions and 2 deletions

View File

@ -122,8 +122,8 @@ get_distro() {
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
distro="Android $(getprop ro.build.version.release)"
elif [[ -f "/etc/os-release" || -f "/usr/lib/os-release" ]]; then
files=("/etc/os-release" "/usr/lib/os-release")
elif [[ -f "/etc/os-release" || -f "/usr/lib/os-release" || -f "/etc/openwrt_release" ]]; then
files=("/etc/os-release" "/usr/lib/os-release" "/etc/openwrt_release")
# Source the os-release file
for file in "${files[@]}"; do