summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2019-03-06 16:25:42 +0000
committerSerge Schneider <serge@raspberrypi.org>2019-03-06 16:25:42 +0000
commit67241b9626a4d89a8389135caf1330bc7a390081 (patch)
tree90250bd55655db04ed68003863d1148779017e72 /scripts
parentb7812278a84da21ffbac9c5ff552b5aff69f842f (diff)
Handle cases where binfmt_misc is built into the kernel
Fixes #264
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dependencies_check3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/dependencies_check b/scripts/dependencies_check
index 9b7725e..375512b 100644
--- a/scripts/dependencies_check
+++ b/scripts/dependencies_check
@@ -29,8 +29,7 @@ dependencies_check()
fi
- if ! lsmod | grep binfmt_misc >/dev/null
- then
+ if ! grep -q "/proc/sys/fs/binfmt_misc" /proc/mounts; then
echo "Module binfmt_misc not loaded in host"
echo "Please run:"
echo " sudo modprobe binfmt_misc"