Created
October 28, 2022 21:00
-
-
Save kopiro/a61255dc320cdfc9efb61d26b0f65ed3 to your computer and use it in GitHub Desktop.
Revisions
-
kopiro created this gist
Oct 28, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/bin/sh set -e -o pipefail MOUNT_TARGET="/usr/palm/applications/com.webos.app.screensaver/qml/main.qml" QML_PATH="$(dirname "$(realpath "$0")")/screensaver-main.qml" if [[ ! -f "$MOUNT_TARGET" ]]; then echo "[-] Target file does not exist: $MOUNT_TARGET" >&2 exit 1 fi # umount "$MOUNT_TARGET" if ! findmnt "$MOUNT_TARGET"; then mount --bind "$QML_PATH" "$MOUNT_TARGET" echo "[+] Enabled succesfully" >&2 else echo "[~] Enabled already" >&2 fi