mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
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:
parent
041e29e585
commit
639aee037f
Notes:
sideshowbarker
2024-07-17 04:57:23 +09:00
Author: https://github.com/fdellwing
Commit: 639aee037f
Pull-request: https://github.com/SerenityOS/serenity/pull/18545
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/LucasChollet
Reviewed-by: https://github.com/kennethmyhra
Reviewed-by: https://github.com/trflynn89
3 changed files with 70 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue