mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-06-08 02:54:40 +08:00
7 lines
168 B
Bash
Executable File
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"
|