--- trunk/installer-simple/functions/hwdetection.sh 2014/01/03 14:07:34 2335 +++ trunk/installer-simple/functions/hwdetection.sh 2014/01/07 13:22:38 2405 @@ -57,7 +57,7 @@ # special memory case get_hwinfo_memory() { - local memory=$(hwinfo --memory | grep "Memory Size" | cut -d: -f2 | sed "s:\ ::") + local memory=$(hwinfo --memory | grep "Memory Size" | sed 's:.*\:\ \(.*\):\1:') echo "${memory}" } @@ -65,7 +65,7 @@ # special smp case get_hwinfo_smp() { - local smp=$(hwinfo --smp | grep "SMP support:" | cut -d: -f2 | sed "s:\ ::") + local memory=$(hwinfo --memory | grep "Memory Size" | cut -d: -f2 | sed "s:\ ::") echo "${smp}" }