From 9c80e3c4a60d86b5c18f81833483cea7a4a5b073 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 28 Dec 2009 22:38:13 +0200 Subject: [PATCH] install.pl: Fix IPoIB manual configuration Signed-off-by: Vladimir Sokolovsky --- install.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.pl b/install.pl index 97b10f6..b884b60 100755 --- a/install.pl +++ b/install.pl @@ -3698,34 +3698,42 @@ sub config_interface } print "\nEnter an IP Adress: "; $ip = ; + chomp $ip; $ret = is_valid_ipv4($ip); while ($ret) { print "\nEnter a valid IPv4 Adress: "; $ip = ; + chomp $ip; $ret = is_valid_ipv4($ip); } print "\nEnter the Netmask: "; $nm = ; + chomp $nm; $ret = is_valid_ipv4($nm); while ($ret) { print "\nEnter a valid Netmask: "; $nm = ; + chomp $nm; $ret = is_valid_ipv4($nm); } print "\nEnter the Network: "; $nw = ; + chomp $nw; $ret = is_valid_ipv4($nw); while ($ret) { print "\nEnter a valid Network: "; $nw = ; + chomp $nw; $ret = is_valid_ipv4($nw); } print "\nEnter the Broadcast Adress: "; $bc = ; + chomp $bc; $ret = is_valid_ipv4($bc); while ($ret) { print "\nEnter a valid Broadcast Adress: "; $bc = ; + chomp $bc; $ret = is_valid_ipv4($bc); } print "\nStart Device On Boot? [Y/n]:"; -- 2.41.0