Commit a1f818ac authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Lu Xu

Fix source of script for all location

This is a followup of 30c59179
parent 039138e6
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_11_if_needed
download_sysrescuecd_if_needed
......@@ -108,6 +107,8 @@ EOF
i=`expr $i + 1`
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -117,7 +118,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=00:22:4D:DD:64:38,192.168.46.51,1h \
--dhcp-host=00:22:4D:DD:65:34,192.168.46.52,1h \
......
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
......@@ -95,9 +94,8 @@ EOF
i=`expr $i + 1`
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -107,7 +105,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=98:03:9b:9b:8a:47,124.219.111.34,1h \
--dhcp-host=b8:59:9f:37:9a:bd,124.219.111.35,1h \
......
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
......@@ -123,9 +122,8 @@ EOF
i=`expr $i + 1`
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -135,7 +133,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=98:03:9b:9b:8a:47,10.0.45.101,1h
......@@ -9,9 +9,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_10_if_needed
download_sysrescuecd_if_needed
......@@ -120,9 +119,8 @@ EOF
i=`expr $i + 1`
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -132,7 +130,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=98:03:9b:9b:8a:47,10.0.45.101,1h \
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_11_if_needed
download_ubuntu_20_if_needed
......@@ -100,6 +99,8 @@ iface ens9 inet dhcp
EOF
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -109,7 +110,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=7c:fe:90:43:80:a8,192.168.46.101,1h \
--dhcp-host=7c:fe:90:43:80:a6,192.168.46.102,1h \
......
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_10_if_needed
#download_sysrescuecd_if_needed
......@@ -89,6 +88,8 @@ EOF
i=`expr $i + 1`
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -98,7 +99,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=00:22:4d:dd:64:f9,192.168.46.102,1h \
--dhcp-host=00:22:4d:dd:65:39,192.168.46.103,1h \
......
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_11_if_needed
......@@ -74,6 +73,8 @@ iface ens2f1 inet dhcp
EOF
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -83,7 +84,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=4c:38:d5:15:49:d1,192.168.46.120,1h \
--dhcp-host=4c:38:d5:15:58:74,192.168.46.121,1h \
......
......@@ -2,9 +2,8 @@
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_10_if_needed
#download_sysrescuecd_if_needed
......@@ -114,9 +113,8 @@ EOF
i=`expr $i + 1`
done
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......@@ -126,7 +124,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--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"`) \
--enable-tftp --tftp-root=$SCRIPT_DIR \
--conf-file=/dev/null \
--dhcp-host=00:02:c9:27:ba:be,178.255.101.197,1h \
--dhcp-host=00:02:c9:27:8c:44,178.255.101.198,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