<config verbose="yes" prio_levels="2">

	<report init_ram="yes" requested="yes" child_ram="yes" delay_ms="2000" buffer="128K"/>

	<parent-provides>
		<service name="ROM"/>
		<service name="PD"/>
		<service name="RM"/>
		<service name="CPU"/>
		<service name="LOG"/>
		<service name="Nitpicker"/>
		<service name="Timer"/>
		<service name="Block"/>
		<service name="Report"/>
		<service name="Rtc"/>
		<service name="File_system"/>
		<service name="Platform"/>
	</parent-provides>

	<default-route> <any-service> <parent/> <any-child/> </any-service> </default-route>

	<default caps="100"/>

	<start name="nit_focus">
		<resource name="RAM" quantum="1M"/>
		<config>
			<policy label_prefix="leitzentrale" focus="no"/>
			<default-policy focus="yes"/>
		</config>
		<route>
			<service name="ROM" label="clicked"> <parent label="clicked"/> </service>
			<service name="Report" label="focus"> <parent label="focus"/> </service>
			<any-service> <parent/> </any-service>
		</route>
	</start>

	<start name="fs" caps="500">
		<resource name="RAM" quantum="114M"/>
		<binary name="init"/>
		<route>
			<service name="ROM" label="config">
				<parent label="config -> subinit/default_fs.config"/> </service>
			<any-service> <parent/> </any-service>
		</route>
		<provides> <service name="File_system"/> </provides>
	</start>

	<start name="noux" caps="1000">
		<resource name="RAM" quantum="80M"/>
		<binary name="init"/>
		<route>
			<service name="ROM" label="config">
				<parent label="config -> subinit/default_noux.config"/> </service>
			<service name="File_system" label="config">
				<parent label="config"/> </service>
			<service name="File_system" label="target">
				<child name="fs"/> </service>
			<any-service> <parent/> </any-service>
		</route>
	</start>

	<start name="nic" caps="500">
		<resource name="RAM" quantum="60M"/>
		<binary name="init"/>
		<route>
			<service name="ROM" label="config">
				<parent label="config -> subinit/default_nic.config"/> </service>
			<service name="ROM" label="wlan.config">
				<parent label="config -> wlan.config"/> </service>
			<any-service> <parent/> </any-service>
		</route>
		<provides> <service name="Nic"/> </provides>
	</start>

	<start name="nic_router" caps="300">
		<resource name="RAM" quantum="10M"/>
		<provides><service name="Nic"/></provides>
		<config verbose_domain_state="yes">
			<default-policy domain="default" />
			<domain name="uplink">
				<nat domain="default" tcp-ports="1000" udp-ports="1000"/>
			</domain>
			<domain name="default" interface="10.0.1.1/24">
				<dhcp-server ip_first="10.0.1.2"
				             ip_last="10.0.1.200"
				             ip_lease_time_sec="360"
				             dns_server="213.73.91.35"/>
				<tcp dst="0.0.0.0/0"><permit-any domain="uplink"/></tcp>
				<udp dst="0.0.0.0/0"><permit-any domain="uplink"/></udp>
			</domain>
		</config>
		<route>
			<service name="Nic"> <child name="nic"/> </service>
			<any-service> <parent/> <any-child/> </any-service>
		</route>
	</start>

<!--
	<start name="download_fs">
		<binary name="chroot"/>
		<resource name="RAM" quantum="1M" />
		<provides> <service name="File_system"/> </provides>
		<config> <default-policy path="/vm/debian" writeable="yes"/> </config>
		<route>
			<service name="File_system"> <child name="fs"/> </service>
			<any-service> <parent/> </any-service>
		</route>
	</start>

	<start name="fetchurl" caps="500">
		<resource name="RAM" quantum="32M"/>
		<config>
			<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc" socket="/socket"/>
			<vfs>
				<dir name="etc">
					<inline name="resolv.conf">nameserver 213.73.91.35</inline>
					<inline name="hosts"/>
				</dir>
				<dir name="socket">
					<lxip dhcp="yes"/>
				</dir>
				<dir name="download"> <fs label="download"/> </dir>
				<dir name="dev">
					<log/> <null/> <inline name="rtc">2000-01-01 00:00</inline>
					<inline name="random">01234567890123456789</inline>
				</dir>
			</vfs>

			<fetch url="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.3.0-amd64-netinst.iso"
			       path="/download/installer.iso"/>

		</config>
		<route>
			<service name="File_system"> <child name="download_fs"/> </service>
			<service name="Nic">         <child name="nic_router"/>  </service>
			<any-service> <parent/> </any-service>
		</route>
	</start>
-->

</config>

