aboutsummaryrefslogtreecommitdiff
path: root/com.rodsbooks.refind/refind-run
blob: 2a43352c377ac927207ec09d0cbcccee6ff43f88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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