mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
OpenWrt support added to distro detection script
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user