Produce meaningful exit code

MFC after:	3 days
X-MFC-to:	stable/10
This commit is contained in:
Devin Teske 2015-09-11 20:56:36 +00:00
parent 527a9f3a85
commit cc478f6fd3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287686

View File

@ -43,6 +43,9 @@ if [ $? -eq $DIALOG_CANCEL ]; then exit 1; fi
exec 3>&-
echo "hostname=\"$HOSTNAME\"" > $BSDINSTALL_TMPETC/rc.conf.hostname
if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
retval=$?
if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
hostname -s "$HOSTNAME"
retval=$?
fi
exit $retval