set hostname to tici-<serial_number> (#89)

* set hostname to tici-<serial_number>

* runs as root
This commit is contained in:
Adeeb Shihadeh
2022-09-22 20:57:16 -07:00
committed by GitHub
parent 06db92b2fa
commit acedbed308
3 changed files with 17 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
SERIAL="$(cat /proc/cmdline | sed -e 's/^.*androidboot.serialno=//' -e 's/ .*$//')"
echo "serial: '$SERIAL'"
hostname "tici-$SERIAL"