-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fusermount scripts from com.borgbase.Vorta
- Loading branch information
1 parent
2afe576
commit 59e2e1a
Showing
4 changed files
with
36 additions
and
0 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,13 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$_FUSE_COMMFD" ]; then | ||
FD_ARGS= | ||
else | ||
FD_ARGS="--env=_FUSE_COMMFD=${_FUSE_COMMFD} --forward-fd=${_FUSE_COMMFD}" | ||
fi | ||
|
||
if [ -e /proc/self/fd/3 ] && [ 3 != "$_FUSE_COMMFD" ]; then | ||
FD_ARGS="$FD_ARGS --forward-fd=3" | ||
fi | ||
|
||
exec flatpak-spawn --host --forward-fd=1 --forward-fd=2 $FD_ARGS fusermount "$@" |
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,19 @@ | ||
{ | ||
"name": "host-command-wrapper", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"install fusermount-wrapper.sh /app/bin/fusermount", | ||
"install fusermount-wrapper.sh /app/bin/fusermount3", | ||
"install umount-wrapper.sh /app/bin/umount" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"path": "fusermount-wrapper.sh" | ||
}, | ||
{ | ||
"type": "file", | ||
"path": "umount-wrapper.sh" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
exec flatpak-spawn --host --forward-fd=1 --forward-fd=2 umount "$@" |