Blame tests/0_common/40_update_hosts.sh
|
Athmane Madjoudj |
f7bf4d |
#!/bin/bash
|
|
Athmane Madjoudj |
f7bf4d |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Athmane Madjoudj |
f7bf4d |
|
|
Athmane Madjoudj |
f7bf4d |
|
|
Athmane Madjoudj |
f7bf4d |
t_Log "Running $0 - Update /etc/hosts"
|
|
Athmane Madjoudj |
f7bf4d |
|
|
James Hogarth |
79d886 |
echo "$(ip a s dev eth0 | awk '$0 ~ /scope global eth0/ {print $2}' | cut -d'/' -f 1) `hostname` " >> /etc/hosts
|
|
Athmane Madjoudj |
f7bf4d |
|