From f60f081a6f686747a972e202717681afb5bf10cc Mon Sep 17 00:00:00 2001 From: spl Date: Mon, 23 May 2016 18:14:18 +0100 Subject: [PATCH] Function to read hostname added. --- raspi-config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/raspi-config b/raspi-config index 45a4be2..11cbf5d 100755 --- a/raspi-config +++ b/raspi-config @@ -304,6 +304,10 @@ do_configure_wifi_country() { IFS=$oIFS } +get_hostname() { + cat /etc/hostname | tr -d " \t\n\r" +} + do_change_hostname() { if [ "$INTERACTIVE" = True ]; then whiptail --msgbox "\