stage3: create init.d directory with some readme

pull/81/head
Piotr Dobrowolski 2022-01-14 20:57:35 +01:00
rodzic a8cd1cce58
commit 70743f2956
2 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -151,6 +151,20 @@ General tab. This will make the TV only go to "sleep mode" (which doesn't take
much more power) instead of doing a full shutdown, and will not need to restart
our services on every suspend. This will also make TV startup much faster.
### I want to run some commands as root during boot!
Our [startup
script](https://github.com/webosbrew/webos-homebrew-channel/blob/main/services/startup.sh#L77-L80)
runs all executable files in `/var/lib/webosbrew/init.d` on boot (via
`run-parts` - filenames may only contain `a-zA-Z0-9-_` letters!) - create your
own scripts there.
Create any customizations there and **do not** modify existing RootMyTV/Homebrew
Channel scripts, since these may be overwritten on future updates.
If you are a homebrew developer - create a symlink to a script in your own app
path there, and **do not** copy over anything there.
### I want to support you financially!
If you want, you can support this project via GitHub Sponsors - see "Sponsor"

Wyświetl plik

@ -55,6 +55,10 @@ touch /var/luna/preferences/webosbrew_telnet_disabled
# exploits sooner or later.
touch /var/luna/preferences/webosbrew_block_updates
mkdir -p /var/lib/webosbrew/init.d
echo "Executable scripts in here will be launched on boot by /var/lib/webosbrew/startup.sh (main startup script)" > /var/lib/webosbrew/init.d/README.txt
echo "Note the filename may only contain a-zA-Z0-9_- since this is executed by run-parts" >> /var/lib/webosbrew/init.d/README.txt
# This is a load-bearing tee. Don't ask.
luna-send -a webosbrew -f -n 1 luna://com.webos.notification/createToast '{"sourceId":"webosbrew","message": "Elevating homebrew channel..."}'
/media/developer/apps/usr/palm/services/org.webosbrew.hbchannel.service/elevate-service 2>&1 | tee /tmp/elevate.log