diff options
author | David P <megver83@parabola.nu> | 2019-11-12 23:35:24 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2019-11-12 23:35:24 -0300 |
commit | e77ff396b67564f497ee1868d5cddfc1eeeffd2e (patch) | |
tree | 1c1d7780148130ad773663503546afc5b5472ba7 /nonsystemd/openrc/binfmt-sh.patch | |
parent | c46585d255183aa1cfbfc077ae56d7a1eba12f4b (diff) | |
download | abslibre-e77ff396b67564f497ee1868d5cddfc1eeeffd2e.tar.gz abslibre-e77ff396b67564f497ee1868d5cddfc1eeeffd2e.tar.bz2 abslibre-e77ff396b67564f497ee1868d5cddfc1eeeffd2e.zip |
addpkg: nonsystemd/openrc 0.42.1-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/openrc/binfmt-sh.patch')
-rw-r--r-- | nonsystemd/openrc/binfmt-sh.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nonsystemd/openrc/binfmt-sh.patch b/nonsystemd/openrc/binfmt-sh.patch new file mode 100644 index 000000000..dc12824d3 --- /dev/null +++ b/nonsystemd/openrc/binfmt-sh.patch @@ -0,0 +1,18 @@ +0a6df09c5bb82bf964177dd3e1c03cb9cf7a8c42 + sh/binfmt.sh.in | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/sh/binfmt.sh.in b/sh/binfmt.sh.in +index ca4a8833..34d6d5e3 100644 +--- a/sh/binfmt.sh.in ++++ b/sh/binfmt.sh.in +@@ -29,6 +29,9 @@ apply_file() { + \;*) continue ;; + esac + ++ local reg=${line#*:} ++ [ -e /proc/sys/fs/binfmt_misc/${reg%%:*} ] && echo -1 > /proc/sys/fs/binfmt_misc/${reg%%:*} ++ + echo "${line}" > /proc/sys/fs/binfmt_misc/register + rc=$? + if [ $rc -ne 0 ]; then |