From 004126fcc99220b7261211bf5b252d405b5fee8c Mon Sep 17 00:00:00 2001 From: marostegui Date: Mon, 27 Nov 2006 09:08:11 +0000 Subject: [PATCH] 2006-11-27 Manuel Arostegui * linux/pandora_agent.sh: Added new distro detection git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@282 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 4 ++++ pandora_agents/linux/pandora_agent.sh | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index 191e68ddf5..24461c4ff8 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,7 @@ +2006-11-27 Manuel Arostegui + + * linux/pandora_agent.sh: Added new distro detection + 2006-11-23 Raul Mateos * linux/pandora_agent.sh, linux/pandora_agent_daemon: Update license, diff --git a/pandora_agents/linux/pandora_agent.sh b/pandora_agents/linux/pandora_agent.sh index ec2efc5b30..6e32a18237 100755 --- a/pandora_agents/linux/pandora_agent.sh +++ b/pandora_agents/linux/pandora_agent.sh @@ -109,6 +109,13 @@ else else LINUX_DISTRO=GENERIC OS_VERSION=`uname -r` + + if [ -f "/etc/fedora-release" ] + then + OS_VERSION=`cat /etc/fedora-release | cut -f 4 -d " "` + OS_VERSION="FEDORA $OS_VERSION" + LINUX_DISTRO=FEDORA + fi fi fi fi