autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 571856a140460e01bc615c86477530b49ef0d2e5
parent e36cb5fc14660f50185cd87bac970b7ae2841358
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 13 Dec 2020 02:44:56 +0100

hostname no longer contains MAC

Diffstat:
Mtemplates/generic/config | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/generic/config b/templates/generic/config @@ -14,7 +14,7 @@ ln -s /etc/sv/bb-syslogd /"$cp_target"/etc/service/syslogd # identify the machine's name by it's 1st MAC if test -f ./$SOURCE/machine_list then - HOSTNAME=$(grep ./$SOURCE/machine_list -e $(echo "$FIRST_NIC" | cut -f2)) + HOSTNAME=$(grep ./$SOURCE/machine_list -e $(echo "$FIRST_NIC" | cut -f2) | cut -f2) echo "$HOSTNAME" > /"$cp_target"/etc/hostname if test -f /"$cp_target"/etc/hosts then