dynamischer Hostname anhand der Mac-Adresse
This commit is contained in:
parent
0215ede06d
commit
1347d5ed38
@ -21,9 +21,12 @@ if [ "$_IP" ]; then
|
||||
fi
|
||||
|
||||
# set hostname
|
||||
if [ -f /boot/client-cfg/hostname.txt ]; then
|
||||
hostname --file /boot/client-cfg/hostname.txt
|
||||
fi
|
||||
#if [ -f /boot/client-cfg/hostname.txt ]; then
|
||||
# hostname --file /boot/client-cfg/hostname.txt
|
||||
#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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user