diff options
| author | torben | 2015-04-09 03:49:07 +0200 |
|---|---|---|
| committer | torben | 2015-04-09 03:49:07 +0200 |
| commit | 78549f9fb6f119a31776f3640d0e689954e9baa7 (patch) | |
| tree | cc9631d51c9f317540328a2afdbbebf9a09d4cf6 /testModule/parse-ip.sh | |
| parent | Adding functions library. (diff) | |
| download | systemd-init-78549f9fb6f119a31776f3640d0e689954e9baa7.tar.gz systemd-init-78549f9fb6f119a31776f3640d0e689954e9baa7.tar.xz systemd-init-78549f9fb6f119a31776f3640d0e689954e9baa7.zip | |
Writting cmdline modifier patch.
Diffstat (limited to 'testModule/parse-ip.sh')
| -rw-r--r-- | testModule/parse-ip.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testModule/parse-ip.sh b/testModule/parse-ip.sh index 2f720c57..b381c573 100644 --- a/testModule/parse-ip.sh +++ b/testModule/parse-ip.sh @@ -1,6 +1,13 @@ # 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 ...........................' + for parameter in $(getargs ip=); do local temp="$parameter:" set -- @@ -17,7 +24,7 @@ for parameter in $(getargs ip=); do warn "PXE given net configuration: ip: $ip server_ip: $server_ip broadcast_ip: $broadcast_ip net_mask: $net_mask" # TODO local gateway_ip="$broadcast_ip" - repace_cmd test "$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" + replace_cmd ip "$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" done # NOTE: Doesn't work since dracuts needed version of mount doesn't support |
