Commit 890c1c3a authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

correctly download needed image if they don't exist

parent b015148b
......@@ -4,7 +4,10 @@ set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR/download_boot_systems.sh
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=VLAN100
......
......@@ -4,7 +4,10 @@ set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR/download_boot_systems.sh
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=VLAN100
......
......@@ -4,7 +4,10 @@ set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR/download_boot_systems.sh
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=eth0
......
......@@ -4,7 +4,10 @@ set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR/download_boot_systems.sh
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=VLAN100
......
......@@ -4,7 +4,10 @@ set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR/download_boot_systems.sh
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=ens9f1
......
......@@ -16,17 +16,3 @@ then
mount -o loop systemrescuecd-amd64-6.1.1.iso sysresccd
fi
}
launch_dnsmasq() {
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
--except-interface=lo \
--listen-address=$MY_IP_ADDR \
--dhcp-range=$DHCP_RANGE \
--dhcp-option=option:router,$ROUTER_ADDR \
--dhcp-option=option:dns-server,$DNS_SERVER \
--dhcp-boot=debian-installer/amd64/grubx64.efi \
--enable-tftp --tftp-root=$(realpath `dirname "$0"`) \
--conf-file=/dev/null \
--dhcp-host=98:03:9b:9b:8a:47,10.0.45.101,1h
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment