From 58a73a552f0c4ec5172987b756b4095b785b3ad3 Mon Sep 17 00:00:00 2001 From: Johannes Bauer Date: Sat, 24 Sep 2016 16:02:40 +0200 Subject: [PATCH] Try to use initramfs IP autoconfig Trying to get rid of the current (shitty) manual IP configuration process. This should enable you to specify on the kernel command line a parameter like ip=:::::eth0:dhcp and the initramfs scripts would take care of acquiring a DHCP address instead of static configuration in the script itself. --- initramfs/luksrku-script | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/initramfs/luksrku-script b/initramfs/luksrku-script index 7d30be1..d04ca3b 100755 --- a/initramfs/luksrku-script +++ b/initramfs/luksrku-script @@ -20,12 +20,14 @@ case $1 in ;; esac -ETH_DEV="eno1" -ETH_IP="192.168.1.29" -ETH_NETMASK="255.255.255.0" +. /scripts/functions +configure_networking -/bin/ifconfig "$ETH_DEV" up "$ETH_IP" netmask "$ETH_NETMASK" -/bin/ip route add default dev "$ETH_DEV" +#ETH_DEV="eno1" +#ETH_IP="192.168.1.29" +#ETH_NETMASK="255.255.255.0" +#/bin/ifconfig "$ETH_DEV" up "$ETH_IP" netmask "$ETH_NETMASK" +#/bin/ip route add default dev "$ETH_DEV" /sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin exit 0