for option in $(cat /proc/cmdline); do
	case $option in
	    log_host=*)
		log_host="${option#log_host=}"
		;;
	    log_port=*)
		log_port="${option#log_port=}"
		;;
	esac
done

if [ -n "$log_host" ]; then
	logging_options="-L -R $log_host"
	if [ -n "$log_port" ]; then
		logging_options="$logging_options:$log_port"
	fi
fi

echo -n "Starting system log daemon: "
/sbin/syslogd -m 0 -O /var/log/syslog -S $logging_options
echo -n "syslogd, "
/sbin/klogd -c 2
echo "klogd."
