From 9720bf6569d895b0b3216349a3bad4f721131920 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 6 Oct 2024 18:17:51 +0200 Subject: [PATCH] New feature: change system hostname from menu --- lib/armbian-configng/config.ng.jobs.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/armbian-configng/config.ng.jobs.json b/lib/armbian-configng/config.ng.jobs.json index 2e8011f95..f8c8da787 100644 --- a/lib/armbian-configng/config.ng.jobs.json +++ b/lib/armbian-configng/config.ng.jobs.json @@ -571,6 +571,16 @@ ], "status": "Disabled", "author": "" + }, + { + "id": "L04", + "description": "Change System Hostname", + "command": [ + "NEW_HOSTNAME=$(whiptail --title \"Enter new hostnane\" --inputbox \"\" 7 50 3>&1 1>&2 2>&3)", + "[ $? -eq 0 ] && [ -n \"${NEW_HOSTNAME}\" ] && hostnamectl set-hostname \"${NEW_HOSTNAME}\"" + ], + "status": "Preview", + "author": "" } ] },