Files
agnos-builder/userspace/root/usr/comma/set-hostname.sh
2026-04-30 18:15:09 -07:00

7 lines
168 B
Bash
Executable File

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