Commit d69d776f authored by root's avatar root

fix for douai

parent 826c0673
......@@ -7,13 +7,13 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
#download_sysrescuecd_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=VLAN100
MY_IP_ADDR=195.90.118.194
DHCP_RANGE=195.90.118.194,static,255.255.255.224
ROUTER_ADDR=195.90.118.193
MY_IF_NAME=eth0
MY_IP_ADDR=192.168.46.2
DHCP_RANGE=192.168.46.100,static,255.255.255.0
ROUTER_ADDR=192.168.46.2
DNS_SERVER=1.1.1.1
common=console=ttyS1,57600
......@@ -35,7 +35,7 @@ mac='
00:22:4d:dd:64:d8
00:22:4d:dd:64:fe
'
i=0
i=1
hostname_prefix=douai-capri-
(
......@@ -84,26 +84,21 @@ iface lo inet loopback
allow-hotplug eno1
#iface eno1 inet dhcp
iface eno1 inet static
address 195.90.118.$(( 50 + $i ))/24
address 192.168.46.$(( 50 + $i ))/24
allow-hotplug ens9f1
iface ens9f1 inet static
allow-hotplug enp193s0f1
iface enp193s0f1 inet static
address 195.90.118.$(( 194 + $i ))/27
gateway 195.90.118.193
dns-nameservers 1.1.1.1 8.8.8.8
#allow-hotplug ens9f0
##iface ens9f0 inet dhcp
#iface ens9f0 inet static
# address 113.24.192.26/30
# gateway 113.24.192.25
#allow-hotplug enp193s0f0
#iface enp193s0f0 inet dhcp
EOF
i=`expr $i + 1`
done
exec dnsmasq -d --port=0 --log-dhcp \
--interface=$MY_IF_NAME \
--bind-interfaces \
......
......@@ -33,10 +33,10 @@ d-i pkgsel/include string ssh aptitude bwm-ng ca-certificates dbus-user-session
# - enable page up/down to search the history
d-i preseed/late_command string set -e; \
cd /target/root; sed -i /^mesg/q .profile; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 195.90.118.194; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 192.168.46.2; \
cd ../../etc; rm -f grub.d/30_otheros; echo LANG=C.UTF-8 >default/locale; \
sed -i '/history-search-/s/# //' inputrc; \
cd network; tftp -g -r `hostname`/interfaces 195.90.118.194; \
cd network; tftp -g -r `hostname`/interfaces 192.168.46.2; \
in-target sh -ec 'passwd -ld root; sed -i /^GRUB_CMDLINE_LINUX_DEFAULT=/s/quiet// /etc/default/grub; update-grub'
d-i time/zone string UTC
tasksel tasksel/first string
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