From ce4b33c151b661b27c50ad1c38b639ff9f90e6a1 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Fri, 27 Nov 2020 15:58:46 +0000 Subject: Don't write HOSTNAME before confirmation. Remove colour around examples. --- netconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'netconfig') diff --git a/netconfig b/netconfig index b03a667..82bb9ef 100644 --- a/netconfig +++ b/netconfig @@ -511,7 +511,8 @@ and dots, and may not begin or end with a hyphen or dot." 7 68 done # Write the hostname with domain to /etc/HOSTNAME: -echo $HOSTNM.$DOMAIN > etc/HOSTNAME +# Do this at the end when writing all the config files. +# echo $HOSTNM.$DOMAIN > etc/HOSTNAME ## OBSOLETE with recent NetworkManager: ## Also make sure the hostname is written to /etc/NetworkManager/NetworkManager.conf: #if [ -w etc/NetworkManager/NetworkManager.conf ]; then @@ -646,7 +647,7 @@ if [ "$LOOPBACK" = "no" -a ! "$USE_DHCP" = "yes" -a ! "$USE_SLAAC" = "yes" ]; th --colors --inputbox \ "Enter the \Z1IPv4\Zn addresses for this host. You may list one or more, space delimited, IPv4 addresses with netmasks in the format: - \Z1/\Zn + / For example: 111.112.113.114/24 or 111.112.113.114/24 10.0.1.114/8 Old style netmask 255.255.255.0 is equilivant of 24 in CIDR style. @@ -742,7 +743,7 @@ Enter IPv4 gateway address:" 14 69 "$GATEWAY" 2> $TMP/SeTgateway4 --colors --inputbox \ "Enter the \Z1IPv6\Zn addresses for this host. You may list one or more, space delimited, IPv6 addresses with their prefixes in the format: - \Z1/\Zn + / For example: 1a:1b:1c:1d::abc/64 or 1a:1b:1c:1d::abc/64 fe80::2:3:4:abc/64 If a prefix is not specified a default of 64 will be used. -- cgit v1.2.3