Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37745632
en ru br
ALT Linux repositórios
S:4.3.30-alt2

Group :: Monitoramento
RPM: xymon

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: xymonclient-linux.sh-altlinux.patch
Download


diff -Nur xymon-4.3.11.old/client/xymonclient-linux.sh xymon-4.3.11/client/xymonclient-linux.sh
--- a/xymon-4.3.11.old/client/xymonclient-linux.sh	2013-08-22 08:44:24.000000000 +0400
+++ b/xymon-4.3.11/client/xymonclient-linux.sh	2014-01-22 18:53:04.099328355 +0400
@@ -16,29 +16,10 @@
 echo "[uname]"
 uname -rsmn
 echo "[osversion]"
-if [ -x /bin/lsb_release ]; then
-	/bin/lsb_release -r -i -s | xargs echo
-	/bin/lsb_release -a 2>/dev/null
-elif [ -x /usr/bin/lsb_release ]; then
-	/usr/bin/lsb_release -r -i -s | xargs echo
-	/usr/bin/lsb_release -a 2>/dev/null
-elif [ -f /etc/redhat-release ]; then
-	cat /etc/redhat-release
-elif [ -f /etc/gentoo-release ]; then
-	cat /etc/gentoo-release
-elif [ -f /etc/debian_version ]; then
-	echo -n "Debian "
-	cat /etc/debian_version
-elif [ -f /etc/S?SE-release ]; then
-	cat /etc/S?SE-release
-elif [ -f /etc/slackware-version ]; then
-	cat /etc/slackware-version
-elif [ -f /etc/mandrake-release ]; then
-	cat /etc/mandrake-release
-elif [ -f /etc/fedora-release ]; then
-	cat /etc/fedora-release
-elif [ -f /etc/arch-release ]; then
-	cat /etc/arch-release
+if [ -f /etc/altlinux-release ]; then
+	cat /etc/altlinux-release
+else
+	echo "Unknown Linux"
 fi
 echo "[uptime]"
 uptime
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009