From 81a5517060dd268e51b9356879c8b33664860a90 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Mon, 11 May 2009 00:28:10 +0000 Subject: [PATCH] * Don't use lsb_release if it's a ReadyNAS compile. --- genconfig.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/genconfig.sh b/genconfig.sh index 7cc647f..d08468a 100755 --- a/genconfig.sh +++ b/genconfig.sh @@ -115,12 +115,19 @@ case $OS_NAME in OS_NAME=Debian OS_VERSION=`cat /etc/debian_version` OS_URL=http://www.debian.org/ - fi - # use lsb_release (Linux Standard Base) when available - LSB_RELEASE=`which lsb_release 2>/dev/null` - if [ 0 -eq $? ]; then - OS_NAME=`${LSB_RELEASE} -i -s` - OS_VERSION=`${LSB_RELEASE} -r -s` + # use lsb_release (Linux Standard Base) when available + LSB_RELEASE=`which lsb_release 2>/dev/null` + if [ 0 -eq $? ]; then + OS_NAME=`${LSB_RELEASE} -i -s` + OS_VERSION=`${LSB_RELEASE} -r -s` + fi + else + # use lsb_release (Linux Standard Base) when available + LSB_RELEASE=`which lsb_release 2>/dev/null` + if [ 0 -eq $? ]; then + OS_NAME=`${LSB_RELEASE} -i -s` + OS_VERSION=`${LSB_RELEASE} -r -s` + fi fi ;; *)