mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
distro script: Code cleanup
This commit is contained in:
+1
-4
@@ -43,9 +43,7 @@ elif [ "${OS}" = "Linux" ] ; then
|
|||||||
elif [ -f /etc/arch-release ] ; then
|
elif [ -f /etc/arch-release ] ; then
|
||||||
DIST="Arch Linux"
|
DIST="Arch Linux"
|
||||||
REV="" # Omit version since Arch Linux uses rolling releases
|
REV="" # Omit version since Arch Linux uses rolling releases
|
||||||
fi
|
elif [ -f /etc/UnitedLinux-release ] ; then
|
||||||
|
|
||||||
if [ -f /etc/UnitedLinux-release ] ; then
|
|
||||||
DIST="${DIST}[`cat /etc/UnitedLinux-release | tr "\n" ' ' | sed s/VERSION.*//`]"
|
DIST="${DIST}[`cat /etc/UnitedLinux-release | tr "\n" ' ' | sed s/VERSION.*//`]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -58,7 +56,6 @@ elif [ "${OS}" = "Linux" ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# OSSTR="${OS} ${DIST} ${REV}(${PSEUDONAME} ${KERNEL} ${MACH})"
|
|
||||||
if [ -n "${REV}" ]
|
if [ -n "${REV}" ]
|
||||||
then
|
then
|
||||||
OSSTR="${DIST} ${REV}"
|
OSSTR="${DIST} ${REV}"
|
||||||
|
|||||||
Reference in New Issue
Block a user