-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad55713
commit 81a6b42
Showing
11 changed files
with
374 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [informatic] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# *** W A R N I N G *** | ||
# | ||
# Do **not** touch this file, nor /var/lib/webosbrew/startup.sh - this is a | ||
# crucial part of RootMyTV exploit chain. | ||
# | ||
# If you want your own startup script customization, create an executable script | ||
# in /var/lib/webosbrew/init.d/ directory - this will be ran during early | ||
# bootup. | ||
# | ||
# *** W A R N I N G *** | ||
|
||
LD_PRELOAD="" nohup sh /var/lib/webosbrew/startup.sh & >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# This script is executed at bootup to fix up shutdown hook script that will | ||
# remove developer mode flag on certain shutdown events if start-devmode.sh | ||
# script is missing. (which is the case on post-2021/06 firmware versions, where | ||
# start-devmode.sh is signed) | ||
|
||
# TODO: do we want to force-create com.lgerp directory here as well? | ||
|
||
# Running pre-webOS 5.x (upstart) | ||
if [[ -f /etc/init/shutdown.conf ]]; then | ||
if ! findmnt /etc/init/shutdown.conf >/dev/null ; then | ||
echo "upstart: fixing shutdown.conf..." | ||
cp /etc/init/shutdown.conf /tmp/.shutdown.conf | ||
sed -i 's;/media/cryptofs/apps/usr/palm/services/com.palmdts.devmode.service/start-devmode.sh;/var/lib/webosbrew/startup.sh;g' /tmp/.shutdown.conf | ||
mount --bind /tmp/.shutdown.conf /etc/init/shutdown.conf | ||
initctl reload-configuration | ||
else | ||
echo "upstart: fixed already" | ||
fi | ||
fi | ||
|
||
# Running webOS 5.x+ (systemd) | ||
if [[ -f /etc/systemd/system/scripts/shutdown.sh ]]; then | ||
if ! findmnt /etc/systemd/system/scripts/shutdown.sh >/dev/null ; then | ||
echo "systemd: fixing shutdown.sh" | ||
cp /etc/systemd/system/scripts/shutdown.sh /tmp/.shutdown.sh | ||
sed -i 's;/media/cryptofs/apps/usr/palm/services/com.palmdts.devmode.service/start-devmode.sh;/var/lib/webosbrew/startup.sh;g' /tmp/.shutdown.sh | ||
mount --bind /tmp/.shutdown.sh /etc/systemd/system/scripts/shutdown.sh | ||
else | ||
echo "systemd: fixed already" | ||
fi | ||
fi |
Oops, something went wrong.