-Eliminate a lot of output (debug and expected error messages) -Properly failover to all dhcpservers for getdestiny, nextdestiny, and getipmi -Randomly vary some sleep intervals to self-segregate nodes in time to take it easy on xCATd -Enhance x86 architecture detection to differentiate x86_64 and x86 with an x86 kernel -Only down nics during discovery if the broadcast domains conflict git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1012 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
case $1 in
 | 
						|
deconfig)
 | 
						|
	/sbin/ifconfig $interface up
 | 
						|
	/sbin/ifconfig $interface 0.0.0.0
 | 
						|
	;;
 | 
						|
bound|renew)
 | 
						|
    echo $siaddr >> /tmp/dhcpserver
 | 
						|
	/sbin/ifconfig $interface $ip netmask $subnet
 | 
						|
        if [ -n "$router" ] ; then
 | 
						|
             while route del default gw 0.0.0.0 dev $interface > /dev/null 2>&1; do
 | 
						|
                :
 | 
						|
               done
 | 
						|
 | 
						|
              for i in $router ; do
 | 
						|
               route add default gw $i dev $interface
 | 
						|
              done
 | 
						|
        fi
 | 
						|
        echo -n > /etc/resolv.conf
 | 
						|
        [ -n "$domain" ] && echo search $domain >> /etc/resolv.conf
 | 
						|
        for i in $dns ; do
 | 
						|
          echo nameserver $i >> /etc/resolv.conf
 | 
						|
        done
 | 
						|
	;;
 | 
						|
esac
 |