Correction affichage adresse ip dans motd
This commit is contained in:
parent
cc444cf591
commit
7efb297823
|
@ -50,7 +50,7 @@ echo -e "$LIGHT_GREEN Utilisateurs connectes :$NONE $connecteduser"
|
|||
|
||||
printserverid(){
|
||||
fqdn=$(hostname -f)
|
||||
addrip=$(hostname -I)
|
||||
addrip=$(ip address show dev eth0 | grep -w inet | awk '{print $2}')
|
||||
echo -e "$LIGHT_GREEN FQDN :$NONE $fqdn$LIGHT_GREEN Adresse IP :$NONE $addrip"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue