diff options
| author | torben | 2015-04-13 17:16:26 +0200 |
|---|---|---|
| committer | torben | 2015-04-13 17:16:26 +0200 |
| commit | a232649db621930758e80e9be6e5834e8d91517e (patch) | |
| tree | d6191dc704f57d972c06013962296084939cfe9e /testModule/parse-ip.sh | |
| parent | basic wrapper (diff) | |
| download | systemd-init-a232649db621930758e80e9be6e5834e8d91517e.tar.gz systemd-init-a232649db621930758e80e9be6e5834e8d91517e.tar.xz systemd-init-a232649db621930758e80e9be6e5834e8d91517e.zip | |
Adding remotly notifyable test initramfs service.
Diffstat (limited to 'testModule/parse-ip.sh')
| -rw-r--r-- | testModule/parse-ip.sh | 11 |
1 files changed, 6 insertions, 5 deletions
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 |
