Took hostaddr out of the loop; if it fails after 10 secs, continue
startup script. (ast@)
This commit is contained in:
		
							parent
							
								
									2f56b477c0
								
							
						
					
					
						commit
						ddb8e7300d
					
				
							
								
								
									
										21
									
								
								etc/usr/rc
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								etc/usr/rc
									
									
									
									
									
								
							@ -143,27 +143,8 @@ start)
 | 
			
		||||
    if [ "$net" ]
 | 
			
		||||
    then
 | 
			
		||||
	# Get the nodename from the DNS and set it.
 | 
			
		||||
	t='-t 10'
 | 
			
		||||
	trap '' 2
 | 
			
		||||
	while :;
 | 
			
		||||
	do
 | 
			
		||||
	    intr $t hostaddr -h
 | 
			
		||||
 | 
			
		||||
	    case $? in
 | 
			
		||||
	    142)
 | 
			
		||||
		echo "\
 | 
			
		||||
Unable to obtain an IP address after 10 seconds.  Hit DEL to get a root
 | 
			
		||||
prompt to investigate, otherwise just wait until an address is received..."
 | 
			
		||||
		t=
 | 
			
		||||
		;;
 | 
			
		||||
	    130)
 | 
			
		||||
		echo "Single user."
 | 
			
		||||
		intr sh
 | 
			
		||||
		echo "Continue waiting for an address..."
 | 
			
		||||
		;;
 | 
			
		||||
	    *)	break
 | 
			
		||||
	    esac
 | 
			
		||||
	done
 | 
			
		||||
	intr -t 10 hostaddr -h || echo "Unable to obtain an IP address."
 | 
			
		||||
	trap 2
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user