This commit is contained in:
3
overlay/etc/uci-defaults/40-hostname
Normal file
3
overlay/etc/uci-defaults/40-hostname
Normal file
@@ -0,0 +1,3 @@
|
||||
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
|
||||
Reference in New Issue
Block a user