Merge pull request #894 from dawidd6/openwrt_release
distro: fix OpenWrt/LEDE detection
This commit is contained in:
commit
5889f1fe8b
1 changed files with 8 additions and 6 deletions
6
neofetch
6
neofetch
|
@ -122,8 +122,10 @@ 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
|
||||
|
|
Loading…
Reference in a new issue