From a232649db621930758e80e9be6e5834e8d91517e Mon Sep 17 00:00:00 2001 From: torben Date: Mon, 13 Apr 2015 17:16:26 +0200 Subject: Adding remotly notifyable test initramfs service. --- testModule/parse-ip.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'testModule/parse-ip.sh') diff --git a/testModule/parse-ip.sh b/testModule/parse-ip.sh index 3349787b..5731242f 100644 --- a/testModule/parse-ip.sh +++ b/testModule/parse-ip.sh @@ -1,12 +1,11 @@ # Converts ip configuration format given by the pxe pre boot provider to a # dracut compatible static ip configuration. -source /usr/lib/test-library.sh - # TODO warn 'LOAD ...........................' warn 'LOAD ...........................' -warn 'LOAD ...........................' + +source /usr/lib/test-library.sh for parameter in $(getargs ip=); do local temp="$parameter:" @@ -22,8 +21,10 @@ for parameter in $(getargs ip=); do [ -n "$4" ] && net_mask=$4 warn "PXE given net configuration: ip: $ip server_ip: $server_ip gateway_ip: $gateway_ip net_mask: $net_mask" - # TODO - replace_cmd ip "$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" + local final_dracut_ip_config="$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" + warn "Final dracut ip config: $final_dracut_ip_config" + #final_dracut_ip_config="enp0s3:dhcp" + replace_cmd ip "$final_dracut_ip_config" done # NOTE: Doesn't work since dracuts needed version of mount doesn't support -- cgit v1.2.3-55-g7522