Files
agnos-builder/userspace/usr/comma/set-hostname.sh
T
2022-10-05 13:01:46 -07:00

7 lines
181 B
Bash
Executable File

#!/bin/bash
set -e
SERIAL="$(cat /proc/cmdline | sed -e 's/^.*androidboot.serialno=//' -e 's/ .*$//')"
echo "serial: '$SERIAL'"
hostnamectl set-hostname --transient "tici-$SERIAL"