Browse files

Symlink /sbin/modprobe to /system/xbin/busybox for kmod helper

This should hopefully fix module autoloading on device insertion.

Signed-off-by: James Christopher Adduono <>
  • Loading branch information...
jcadduono committed Oct 11, 2017
1 parent a381243 commit 76af302020989cff9b4639fd51f3e02d0cc3ddf6
Showing with 9 additions and 2 deletions.
  1. +9 −2 nethunter-installer/boot-patcher/patch.d/03-kernel-modules
@@ -8,10 +8,17 @@

print "Installing /lib/modules symlink"
rm -rf lib
mkdir -m 0755 lib
mkdir -p lib
chmod 0755 lib
rm -rf lib/modules
ln -s /system/lib/modules lib/modules

print "Installing /sbin/modprobe symlink"
mkdir -p sbin
chmod 0755 sbin
rm -rf sbin/modprobe
ln -s /system/xbin/busybox sbin/modprobe

cd "$tmp"

print "Gathering original module layout..."

0 comments on commit 76af302

Please sign in to comment.