aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sh/binfmt.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/binfmt.sh.in b/sh/binfmt.sh.in
index ca4a8833..11a57211 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