From: miljenko Date: Tue, 20 Dec 2005 16:09:50 +0000 (+0000) Subject: Simplified. X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=98096c3dba54213373228ccb3c000492395694fa;p=imunes.git Simplified. Bug found by: Submitted by: Requested by: Reviewed by: Approved by: Obtained from: --- 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 +