Date: Mon, 2 Nov 2015 22:09:43 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r290294 - stable/10/usr.sbin/bsdinstall/scripts Message-ID: <201511022209.tA2M9ho1077093@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Mon Nov 2 22:09:43 2015 New Revision: 290294 URL: https://svnweb.freebsd.org/changeset/base/290294 Log: MFC r287686: Produce meaningful exit code Modified: stable/10/usr.sbin/bsdinstall/scripts/hostname Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/bsdinstall/scripts/hostname ============================================================================== --- stable/10/usr.sbin/bsdinstall/scripts/hostname Mon Nov 2 22:08:59 2015 (r290293) +++ stable/10/usr.sbin/bsdinstall/scripts/hostname Mon Nov 2 22:09:43 2015 (r290294) @@ -44,6 +44,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?201511022209.tA2M9ho1077093>