4 lines
167 B
Plaintext
4 lines
167 B
Plaintext
HOSTNAME=cam-$(cat /sys/class/net/eth0/address | cut -d : -f 4- | sed -e 's/://g')
|
|
uci set system.@system[0].hostname=$HOSTNAME
|
|
uci set network.lan.hostname=$HOSTNAME
|