From 52ceafbcbbfb715b32f5cb7600b4d1f92f5ff405 Mon Sep 17 00:00:00 2001 From: Tamas Szabo Date: Tue, 29 Sep 2015 15:20:47 +0300 Subject: [PATCH] OpenWrt support added to distro detection script --- scripts/distro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/distro b/scripts/distro index 0b31916b94..88b2fda393 100755 --- a/scripts/distro +++ b/scripts/distro @@ -52,6 +52,10 @@ elif [ "${OS}" = "Linux" ] ; then elif [ -f /etc/os-release ] ; then DIST=$(grep '^NAME=' /etc/os-release | cut -d= -f2- | tr -d '"') REV=$(grep '^VERSION_ID=' /etc/os-release | cut -d= -f2- | tr -d '"') + + elif [ -f /etc/openwrt_version ] ; then + DIST="OpenWrt" + REV=$(cat /etc/openwrt_version) fi if [ -f /etc/lsb-release -a "${IGNORE_LSB}" != 1 ] ; then