1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00

NetworkServer: Add a new NetworkServer service

This service is responsible for loading network configuration from a
/etc/Network.ini config file. It sets up static IP address + mask or
starts DHCPClient depending on configuration.
This commit is contained in:
Maciej 2022-05-07 15:01:26 +02:00 committed by Linus Groh
parent e14d4482a1
commit ddd4547e13
5 changed files with 109 additions and 6 deletions

5
Base/etc/Network.ini Normal file
View file

@ -0,0 +1,5 @@
[ep1s0]
Enabled=false
[ep0s8]
DHCP=true

View file

@ -51,6 +51,10 @@ SystemModes=text,graphical
MultiInstance=true
AcceptSocketConnections=true
[NetworkServer]
User=root
SystemModes=text,graphical,self-test
[LookupServer]
Socket=/tmp/portal/lookup
SocketPermissions=660
@ -59,12 +63,6 @@ KeepAlive=true
User=lookup
SystemModes=text,graphical,self-test,generate-manpages
[DHCPClient]
Priority=low
KeepAlive=true
User=root
SystemModes=text,graphical,self-test
[NotificationServer]
Socket=/tmp/portal/notify
SocketPermissions=600