From 63a311056573961bce9ad2a8f65fed9a29f50e63 Mon Sep 17 00:00:00 2001 From: John W. Linville Date: Nov 25 2014 21:25:42 +0000 Subject: setregdomain: change error exits to use "exit 1" Signed-off-by: John W. Linville --- 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)"