mambareport: avoid reading missing machine information from standard input, set fields to unknown
This commit is contained in:
parent
fbd9612b03
commit
ea16cf3903
@ -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 ' ' _`
|
||||
|
Loading…
Reference in New Issue
Block a user