From ea16cf39032f6927d186e3685ddb95554b334021 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 27 Feb 2013 11:11:36 +0100 Subject: [PATCH] mambareport: avoid reading missing machine information from standard input, set fields to unknown --- mambareport/openmamba-makereport | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mambareport/openmamba-makereport b/mambareport/openmamba-makereport index 8ae9f4b..130e0e9 100755 --- a/mambareport/openmamba-makereport +++ b/mambareport/openmamba-makereport @@ -11,18 +11,15 @@ TEMPFILE=`tempfile` . ${ROOT}/etc/sysconfig/machine [ ! "$SYSTEM_MANUFACTURER" -o "$SYSTEM_MANUFACTURER" = "System manufacturer" ] && { - echo -n "Please enter the name of the system manufacturer: " - read SYSTEM_MANUFACTURER + SYSTEM_MANUFACTURER=unknown } [ ! "$SYSTEM_PRODUCT_NAME" -o "$SYSTEM_PRODUCT_NAME" = "System Product Name" ] && { - echo -n "Please enter the name of the system product name: " - read SYSTEM_PRODUCT_NAME + SYSTEM_PRODUCT_NAME=unknown } [ ! "$SYSTEM_SERIAL_NUMBER" -o "$SYSTEM_SERIAL_NUMBER" = "System Serial Number" ] && { - echo -n "Please enter the name of the system serial number: " - read SYSTEM_SERIAL_NUMBER + SYSTEM_SERIAL_NUMBER=unknown } SYSTEM_MANUFACTURER=`echo $SYSTEM_MANUFACTURER | tr ' ' _`