From 98096c3dba54213373228ccb3c000492395694fa Mon Sep 17 00:00:00 2001 From: miljenko Date: Tue, 20 Dec 2005 16:09:50 +0000 Subject: [PATCH] Simplified. Bug found by: Submitted by: Requested by: Reviewed by: Approved by: Obtained from: --- quaggaboot.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/quaggaboot.sh b/quaggaboot.sh index 4ee9592..6b93823 100755 --- a/quaggaboot.sh +++ b/quaggaboot.sh @@ -2,20 +2,9 @@ zebra -d -if [ `fgrep "router rip" $1 | wc -l` -ne 0 ]; then - ripd -d -fi - -if [ `fgrep "router ripng" $1 | wc -l` -ne 0 ]; then - ripngd -d -fi - -if [ `fgrep "router ospf" $1 | wc -l` -ne 0 ]; then - ospfd -d -fi - -if [ `fgrep "router bgp" $1 | wc -l` -ne 0 ]; then - bgpd -d -fi +for f in rip ripng ospf bgp; do + fgrep "router $f" $1 && ${f}d -d +done vtysh -b + -- 2.39.5