Userland+Meta: Add new helper program for network settings

This little program allows us to take the NetworkSettings app away
from being an elevated GUI app.

It receives a JsonObject on STDIN and writes it to the global
Network configuration file.

If the write was successfull it will apply the changes.
This commit is contained in:
Fabian Dellwing 2023-04-27 21:01:05 +02:00 committed by Andrew Kaster
commit 639aee037f
Notes: sideshowbarker 2024-07-17 04:57:23 +09:00
3 changed files with 70 additions and 1 deletions

View file

@ -129,6 +129,11 @@ if [ -f mnt/boot/Kernel.debug ]; then
chmod 0400 mnt/boot/Kernel.debug
fi
if [ -f mnt/bin/network-settings ]; then
chown 0:0 mnt/bin/network-settings
chmod 500 mnt/bin/network-settings
fi
chmod 600 mnt/etc/shadow
chmod 755 mnt/res/devel/templates/*.postcreate
echo "done"