Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Symlink /sbin/modprobe to /system/xbin/busybox for kmod helper
Browse files Browse the repository at this point in the history
This should hopefully fix module autoloading on device insertion.

Signed-off-by: James Christopher Adduono <jc@adduono.com>
  • Loading branch information
jcadduono committed Oct 11, 2017
1 parent a381243 commit 76af302
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nethunter-installer/boot-patcher/patch.d/03-kernel-modules
Expand Up @@ -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..."
Expand Down

0 comments on commit 76af302

Please sign in to comment.