mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
We depend on systemd for many things anyway and this code path is never tested. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
9 lines
159 B
Bash
Executable File
9 lines
159 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
hostname="$1"
|
|
|
|
hostnamectl set-hostname --transient --static "$hostname"
|
|
|
|
service avahi-daemon restart
|