From c3bd7cb490a184db660613e0d516351a9ebefae7 Mon Sep 17 00:00:00 2001 From: axtlos Date: Fri, 1 Jul 2022 17:07:44 +0200 Subject: add refind --- com.rodsbooks.refind/refind-run | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 com.rodsbooks.refind/refind-run (limited to 'com.rodsbooks.refind/refind-run') diff --git a/com.rodsbooks.refind/refind-run b/com.rodsbooks.refind/refind-run new file mode 100755 index 0000000..2a43352 --- /dev/null +++ b/com.rodsbooks.refind/refind-run @@ -0,0 +1,15 @@ +#!/usr/bin/bash +if [[ $1 == "install" ]]; then + mkdir ~/refind-install + cp -r /app ~/refind-install/. + cd ~/refind-install/. + sed -i "s|* RefindDir=*| RefindDir=\"${HOME}/refind-install/app/refind\"|" app/bin/refind-install + flatpak-spawn --host pkexec app/bin/refind-install +elif [[ $1 == "mkdefault" ]]; then + /app/bin/refind-mkdefault +elif [[ $1 == "mkrlconf" ]]; then + /app/bin/mkrlconf +elif [[ $1 == "mvrefind" ]]; then + /app/bin/mvrefind +fi + -- cgit v1.2.3