os/misc/scripts/basic-setup.sh

8 lines
190 B
Bash
Raw Normal View History

2022-12-02 14:26:25 +01:00
#!/bin/sh
ip=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
sed -i -e "s/MY_IP_HERE/${ip}/g" /srv/tftpboot/menu/boot.ipxe
service dnsmasq start
service mini_httpd start