[crda] setregdomain: change error exits to use "exit 1"
John W. Linville
linville at fedoraproject.org
Tue Nov 25 21:32:21 UTC 2014
commit 63a311056573961bce9ad2a8f65fed9a29f50e63
Author: John W. Linville <linville at tuxdriver.com>
Date: Tue Nov 18 16:32:07 2014 -0500
setregdomain: change error exits to use "exit 1"
Signed-off-by: John W. Linville <linville at tuxdriver.com>
setregdomain | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/setregdomain b/setregdomain
index 5316d03..3e4daf8 100755
--- a/setregdomain
+++ b/setregdomain
@@ -49,13 +49,13 @@ then
ZONE=${ZONE#../usr/share/zoneinfo/}
else
$LOGGER -s "Timezone information not found! Unable to set regulatory domain."
- exit
+ exit 1
fi
if [ -z "$ZONE" ]
then
$LOGGER -s "Timezone information not set! Unable to set regulatory domain."
- exit
+ exit 1
fi
COUNTRY=$(getcountry)
@@ -63,7 +63,7 @@ COUNTRY=$(getcountry)
if [ -z "$COUNTRY" ]
then
$LOGGER -s "Could not determine country! Unable to set regulatory domain."
- exit
+ exit 1
fi
$LOGGER "setting regulatory domain to $COUNTRY based on timezone ($ZONE)"
More information about the scm-commits
mailing list