From de1b28e7de97f6f969c1c02e5b8d22f1eaedbbf9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Apr 2007 18:30:00 +0200 Subject: [PATCH] Eirik-fixes for ZyxelNG. --- clients/ciscong.pl | 9 +++------ clients/zyxelng.pl | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) 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 { -- 2.39.2