Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 2b6d57de11205d1e4ec8b18312057c35 > files > 152

initng-ifiles-0.1.5-4.fc12.i686.rpm

#!/sbin/itype
# This is a i file, used by initng parsed by install_service

# NAME: 
# DESCRIPTION: 
# WWW: 

daemon daemon/udhcpc/* {
	need = system/bootmisc;
	use = system/modules system/coldplug;
	respawn;
	env_file = /etc/conf.d/net;
	script daemon = {
		eval opts=\"\$\{udhcpc_${NAME}\}\"
		h=`hostname`
		if [ -n "${h}" -a ! "${h}" = "(none)" -a ! "${h}" = "localhost" ]
		then
			echo "${opts}" | /bin/grep -w -- '-h' || opts="${opts} --hostname=${h}"
		fi
		exec udhcpc ${opts} --now --script=${INITNG_PLUGIN_DIR}/scripts/net/udhcpc-wrapper --foreground --interface=${NAME}
	};
}