The attached tarball contains the script, the Makefile, an
install.conf and a serial console log of the unattended automatic install.
Notes for the Makefile
If you comment out the MAC variable the file will be uploaded to the web server as
install.conf. Else the MAC address, followed by a '-' will be prefixed.
Code:
#MAC = 52:54:00:aa:aa:01
CONF = install.conf
.ifdef MAC
UPLOAD = ${MAC}-${CONF}
.else
UPLOAD = ${CONF}
.endif
Code:
$ make -n upload
sudo cp -p install.conf /home/www/52:54:00:aa:aa:01-install.conf
$ vi Makefile (commenting out the MAC variable)
$ make -n upload
sudo cp -p install.conf /home/www/install.conf
Check
make(1) for the purpose of the
-n option in this small demo