kopia lustrzana https://github.com/RootMyTV/RootMyTV.github.io
stage3: create init.d directory with some readme
rodzic
a8cd1cce58
commit
70743f2956
14
README.md
14
README.md
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue