Subversion Repositories livecd

Rev

Rev 193 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 193 Rev 212
Line 582... Line 582...
582
    fi
582
    fi
583
    if [ "$IP" != "" ]; then
583
    if [ "$IP" != "" ]; then
584
	host -W 1 $IP >/dev/null 2>&1
584
	host -W 1 $IP >/dev/null 2>&1
585
	if [ "$?" = "0" ]; then
585
	if [ "$?" = "0" ]; then
586
	    HOSTNAME=$( host -W 1 $IP | cut -d" " -f 5 | cut -d"." -f 1 )
586
	    HOSTNAME=$( host -W 1 $IP | cut -d" " -f 5 | cut -d"." -f 1 )
587
	    if [ "$HOSTNAME" = "3(NXDOMAIN)" ]; then
587
	    # do not set hostname, if host command doesn't find it 
588
		HOSTNAME=$DEFAULT_HOSTNAME
588
	    [ "$HOSTNAME" = "3(NXDOMAIN)" ] && HOSTNAME=$DEFAULT_HOSTNAME
589
	    fi	
-
 
590
	    if [ "$HOSTNAME" = "no" ]; then
589
	    [ "$HOSTNAME" = "no" ] && HOSTNAME=$DEFAULT_HOSTNAME
591
		HOSTNAME=$DEFAULT_HOSTNAME
590
	    [ "$HOSTNAME" = "record" ] && HOSTNAME=$DEFAULT_HOSTNAME
592
	    fi	
-
 
593
	fi
591
	fi
594
    fi
592
    fi
595
fi
593
fi
596
 
594
 
597
### define default hostname, if $HOSTNAME is still not yet set
595
### define default hostname, if $HOSTNAME is still not yet set