fix hostname setting

This commit is contained in:
Adeeb Shihadeh
2022-10-05 13:01:46 -07:00
parent 02a1a4d0c4
commit d24da2acef
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
[main]
plugins=ifupdown,keyfile
dns=systemd-resolved
hostname-mode=none
[ifupdown]
managed=true

View File

@@ -3,4 +3,4 @@ set -e
SERIAL="$(cat /proc/cmdline | sed -e 's/^.*androidboot.serialno=//' -e 's/ .*$//')"
echo "serial: '$SERIAL'"
nmcli general hostname "tici-$SERIAL"
hostnamectl set-hostname --transient "tici-$SERIAL"