mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-19 18:31:33 +00:00
Use OpenAp-${eth0_mac:6} as default hostname.
Signed-off-by: John Crispin <john@phrozen.org>
8 lines
142 B
Bash
8 lines
142 B
Bash
#!/bin/sh
|
|
|
|
MAC=$(cat /sys/class/net/eth0/address | tr -d ":")
|
|
uci set system.@system[-1].hostname="OpenAp-${MAC:6}"
|
|
uci commit system
|
|
|
|
exit 0
|