]> git.openfabrics.org - ~emulex/ofed_scripts/.git/commitdiff
install.pl: Fix IPoIB manual configuration
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 28 Dec 2009 20:38:13 +0000 (22:38 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 28 Dec 2009 20:38:13 +0000 (22:38 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
install.pl

index 97b10f6ed7ad4ec355cc1e0955eb08c389f493b5..b884b6087b2224d662d1a29ee14ab54973fedb4f 100755 (executable)
@@ -3698,34 +3698,42 @@ sub config_interface
         }
         print "\nEnter an IP Adress: ";
         $ip = <STDIN>;
+        chomp $ip;
         $ret = is_valid_ipv4($ip);
         while ($ret) {
             print "\nEnter a valid IPv4 Adress: ";
             $ip = <STDIN>;
+            chomp $ip;
             $ret = is_valid_ipv4($ip);
         }
         print "\nEnter the Netmask: ";
         $nm = <STDIN>;
+        chomp $nm;
         $ret = is_valid_ipv4($nm);
         while ($ret) {
             print "\nEnter a valid Netmask: ";
             $nm = <STDIN>;
+            chomp $nm;
             $ret = is_valid_ipv4($nm);
         }
         print "\nEnter the Network: ";
         $nw = <STDIN>;
+        chomp $nw;
         $ret = is_valid_ipv4($nw);
         while ($ret) {
             print "\nEnter a valid Network: ";
             $nw = <STDIN>;
+            chomp $nw;
             $ret = is_valid_ipv4($nw);
         }
         print "\nEnter the Broadcast Adress: ";
         $bc = <STDIN>;
+        chomp $bc;
         $ret = is_valid_ipv4($bc);
         while ($ret) {
             print "\nEnter a valid Broadcast Adress: ";
             $bc = <STDIN>;
+            chomp $bc;
             $ret = is_valid_ipv4($bc);
         }
         print "\nStart Device On Boot? [Y/n]:";