[Midnightbsd-cvs] src [11336] trunk/usr.sbin/bsdinstall/scripts/hostname: update hostname
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Jul 4 21:33:58 EDT 2018
Revision: 11336
http://svnweb.midnightbsd.org/src/?rev=11336
Author: laffer1
Date: 2018-07-04 21:33:57 -0400 (Wed, 04 Jul 2018)
Log Message:
-----------
update hostname
Modified Paths:
--------------
trunk/usr.sbin/bsdinstall/scripts/hostname
Property Changed:
----------------
trunk/usr.sbin/bsdinstall/scripts/hostname
Modified: trunk/usr.sbin/bsdinstall/scripts/hostname
===================================================================
--- trunk/usr.sbin/bsdinstall/scripts/hostname 2018-07-05 01:33:19 UTC (rev 11335)
+++ trunk/usr.sbin/bsdinstall/scripts/hostname 2018-07-05 01:33:57 UTC (rev 11336)
@@ -1,6 +1,7 @@
#!/bin/sh
#-
# Copyright (c) 2011 Nathan Whitehorn
+# Copyright (c) 2015 Devin Teske
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -24,8 +25,8 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
+# $FreeBSD: stable/10/usr.sbin/bsdinstall/scripts/hostname 290294 2015-11-02 22:09:43Z dteske $
# $MidnightBSD$
-# $FreeBSD: src/usr.sbin/bsdinstall/scripts/hostname,v 1.1 2011/02/18 14:54:34 nwhitehorn Exp $
: ${DIALOG_OK=0}
: ${DIALOG_CANCEL=1}
@@ -44,6 +45,9 @@
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
Property changes on: trunk/usr.sbin/bsdinstall/scripts/hostname
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list