mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 05:08:27 +00:00 
			
		
		
		
	 495feb8a41
			
		
	
	
		495feb8a41
		
	
	
	
	
		
			
			Debian build systems use debian subdir for building and having a debian dir in the source package causes issues. Moving it to debianpkg avoids the issue and allows us to ship debian package files in the source distribution Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
		
			
				
	
	
		
			31 lines
		
	
	
		
			706 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			706 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| #---------------
 | |
| # Testing frr
 | |
| #---------------
 | |
| set -e
 | |
| 
 | |
| # modify config file to enable all daemons and copy config files
 | |
| CONFIG_FILE=/etc/frr/daemons
 | |
| DAEMONS=("zebra" "bgpd" "ospfd" "ospf6d" "ripd" "ripngd" "isisd" "pimd")
 | |
| 
 | |
| for daemon in "${DAEMONS[@]}"
 | |
| do
 | |
|     sed -i -e "s/${daemon}=no/${daemon}=yes/g" $CONFIG_FILE
 | |
|     cp /usr/share/doc/frr/examples/${daemon}.conf.sample /etc/frr/${daemon}.conf
 | |
| done
 | |
| 
 | |
| # reload frr
 | |
| /etc/init.d/frr restart > /dev/null 2>&1
 | |
| 
 | |
| # check daemons
 | |
| for daemon in "${DAEMONS[@]}"
 | |
| do
 | |
|     echo -n "check $daemon  -  "
 | |
|     if pidof -x $daemon > /dev/null; then
 | |
|         echo "${daemon} OK"
 | |
|     else
 | |
|         echo "ERROR: ${daemon} IS NOT RUNNING"
 | |
|         exit 1
 | |
|     fi
 | |
| done
 |