From: root Date: Sat, 7 Apr 2007 16:30:00 +0000 (+0200) Subject: Eirik-fixes for ZyxelNG. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=de1b28e7de97f6f969c1c02e5b8d22f1eaedbbf9;p=nms Eirik-fixes for ZyxelNG. --- diff --git a/clients/ciscong.pl b/clients/ciscong.pl index 068ff30..a2c0895 100644 --- a/clients/ciscong.pl +++ b/clients/ciscong.pl @@ -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); diff --git a/clients/zyxelng.pl b/clients/zyxelng.pl index 3d02996..1641e96 100644 --- a/clients/zyxelng.pl +++ b/clients/zyxelng.pl @@ -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 {