summaryrefslogtreecommitdiffstats
path: root/testModule/parse-ip.sh
diff options
context:
space:
mode:
authortorben2015-04-13 20:09:38 +0200
committertorben2015-04-13 20:09:38 +0200
commit91cc532a55fed3c6c27a2e14759e901ed3d72579 (patch)
tree18cc276173bc543b38e84143674429a306c26f0e /testModule/parse-ip.sh
parentAdding endless test service. Fix some naming conventions. (diff)
downloadsystemd-init-91cc532a55fed3c6c27a2e14759e901ed3d72579.tar.gz
systemd-init-91cc532a55fed3c6c27a2e14759e901ed3d72579.tar.xz
systemd-init-91cc532a55fed3c6c27a2e14759e901ed3d72579.zip
Code refactoring.
Diffstat (limited to 'testModule/parse-ip.sh')
-rw-r--r--testModule/parse-ip.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/testModule/parse-ip.sh b/testModule/parse-ip.sh
deleted file mode 100644
index 5731242f..00000000
--- a/testModule/parse-ip.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-# Converts ip configuration format given by the pxe pre boot provider to a
-# dracut compatible static ip configuration.
-
-# TODO
-warn 'LOAD ...........................'
-warn 'LOAD ...........................'
-
-source /usr/lib/test-library.sh
-
-for parameter in $(getargs ip=); do
- local temp="$parameter:"
- set --
- while [ -n "$temp" ]; do
- set -- "$@" "${temp%%:*}"
- temp=${temp#*:}
- done
-
- [ -n "$1" ] && ip=$1
- [ -n "$2" ] && server_ip=$2
- [ -n "$3" ] && gateway_ip=$3
- [ -n "$4" ] && net_mask=$4
-
- warn "PXE given net configuration: ip: $ip server_ip: $server_ip gateway_ip: $gateway_ip net_mask: $net_mask"
- 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
-# binds.
-#cat /proc/cmdline | sed --regexp-extended 's/ip=[^ ]+//g' \
-# >"$temporary_kernel_commandline_file_path" && \
-#mount -n --rbind -o ro "$temporary_kernel_commandline_file_path" /proc/cmdline