dynamischer Hostname anhand der Mac-Adresse
This commit is contained in:
parent
0215ede06d
commit
1347d5ed38
@ -21,9 +21,12 @@ if [ "$_IP" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set hostname
|
# set hostname
|
||||||
if [ -f /boot/client-cfg/hostname.txt ]; then
|
#if [ -f /boot/client-cfg/hostname.txt ]; then
|
||||||
hostname --file /boot/client-cfg/hostname.txt
|
# hostname --file /boot/client-cfg/hostname.txt
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
#Hostname wird anhand des WLAN0 erstell / kann auch entsprechend auf anderes Geraet umgestellt werden
|
||||||
|
echo rpi$(cat /sys/class/net/wlan0/address | sed '/://g') > /tmp/hostname && hostname --file /tmp/hostname
|
||||||
|
|
||||||
# set network
|
# set network
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user