Minor tweak to network.pr

This commit is contained in:
Tony Garnock-Jones 2022-01-14 17:57:00 +01:00
parent a34d7eea9b
commit 0ab025d010
1 changed files with 4 additions and 4 deletions

View File

@ -1,18 +1,18 @@
<require-service <milestone network>>
<network-interface "lo" <static "127.0.0.1">>
<network-interface "eth0" <dhcp>>
<configure-interface "lo" <static "127.0.0.1">>
<configure-interface "eth0" <dhcp>>
<depends-on <milestone network> <service-state <daemon interfaces> complete>>
? <network-interface ?ifname <static ?ipaddr>> [
? <configure-interface ?ifname <static ?ipaddr>> [
<daemon interfaces {
argv: ["ifconfig" $ifname $ipaddr "up"]
restart: on-error
}>
]
? <network-interface ?ifname <dhcp>> [
? <configure-interface ?ifname <dhcp>> [
<daemon interfaces {
argv: ["ifconfig" $ifname "up"]
restart: on-error