Date: Fri, 11 Sep 2015 20:56:36 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287686 - head/usr.sbin/bsdinstall/scripts Message-ID: <201509112056.t8BKuaqq041351@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509112056.t8BKuaqq041351>