svn commit: r287686 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Fri Sep 11 20:56:37 UTC 2015
Author: dteske
Date: Fri Sep 11 20:56:36 2015
New Revision: 287686
URL: https://svnweb.freebsd.org/changeset/base/287686
Log:
Produce meaningful exit code
MFC after: 3 days
X-MFC-to: stable/10
Modified:
head/usr.sbin/bsdinstall/scripts/hostname
Modified: head/usr.sbin/bsdinstall/scripts/hostname
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/hostname Fri Sep 11 20:45:41 2015 (r287685)
+++ head/usr.sbin/bsdinstall/scripts/hostname Fri Sep 11 20:56:36 2015 (r287686)
@@ -43,6 +43,9 @@ if [ $? -eq $DIALOG_CANCEL ]; then exit
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
More information about the svn-src-head
mailing list