* bin/cpu-count: nothing to print on --detail

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-06 20:58:05 -05:00
commit 826a43496b

View file

@ -17,8 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
count=`grep -c "^processor.*:" /proc/cpuinfo`
[ "$count" = "1" ] || printf "%sx" "$count"
if [ "$1" = "--detail" ]; then
exit 0
fi
count=`grep -c "^processor.*:" /proc/cpuinfo`
[ "$count" = "1" ] || printf "%sx" "$count"