diff --git a/packages/linux/package.mk b/packages/linux/package.mk index a4ecdf12ad..3a6b51fb04 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -213,9 +213,6 @@ makeinstall_init() { } post_install() { - mkdir -p $INSTALL/etc/modprobe.d - cp $PKG_DIR/modprobe.d/*.conf $INSTALL/etc/modprobe.d - ln -sf /storage/.config/firmware/ $INSTALL/lib/firmware/updates enable_service cpufreq-threshold.service diff --git a/scripts/install b/scripts/install index d98a28e28d..7d5540643f 100755 --- a/scripts/install +++ b/scripts/install @@ -125,6 +125,12 @@ if [ "$TARGET" = target ] ; then mkdir -p $INSTALL/usr/share/debugconf cp $PKG_DIR/debug.d/*.conf $INSTALL/usr/share/debugconf fi + + if [ -d $PKG_DIR/modprobe.d ]; then + mkdir -p $INSTALL/etc/modprobe.d + cp $PKG_DIR/modprobe.d/*.conf $INSTALL/etc/modprobe.d + fi + fi # unset functions