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 ;; *)