]> git.sesse.net Git - nms/commitdiff
Eirik-fixes for ZyxelNG.
authorroot <root@space>
Sat, 7 Apr 2007 16:30:00 +0000 (18:30 +0200)
committerroot <root@space>
Sat, 7 Apr 2007 16:30:00 +0000 (18:30 +0200)
clients/ciscong.pl
clients/zyxelng.pl

index 068ff308e9c5ad7f3730f8c8595b8a5abd30a4e4..a2c08954eb00ec5806b9c1dc035801cf3dc6eeb4 100644 (file)
@@ -210,12 +210,9 @@ sub verify_run {
                                        # No answer from zyxel
                                        last;
                                }
-                               my $pid = fork();
-                               if ($pid == 0) {
-                                       sleep 100;
-                                       system("perl ./ciscong2.pl $switch");
-                                       exit 0;
-                               }
+                               print "Waiting for telnet to time out so we can do run ciscong.pl\n";
+                               sleep 100;
+                               system("perl ./ciscong2.pl $switch");
                                last;
                        }
                        last if $p->ping($ip);
index 3d029967e80903ec2b6d41c73e1bb019c356eb24..1641e96993b79cae117113fb49a9e5e06b5e8b9c 100644 (file)
@@ -53,7 +53,6 @@ $cmd = "ip ifconfig swif0 $newip/30";
 print "Sending '$cmd'\n";
 my $pid = fork();
 if ($pid == 0) {
-       print "Sending ifconfig.. $cmd\n";
        switch_exec($cmd, $switch);
        exit 0;
 } else {