- Phil's patch from http://www.handhelds.org/hypermail/oe/current/6167.html
- this also works when ipkg intercepts update-modules in postinst.
fi
done
+first_time=0
+if [ ! -f $MODULESFILE ]; then
+ first_time=1
+fi
+
mv "$MODCONFTMPFILE" "$MODCONFFILE"
mv "$MODULESTMPFILE" "$MODULESFILE"
+if [ $first_time -eq 1 ]; then
+ /etc/init.d/modutils.sh || true
+fi
+
# We also call depmod here to stop insmod from complaining that modules.conf
# is more recent then modules.dep
#
if [ -d "`depdir`" -a -f /proc/modules ]
then
- depmod -a || true
+ depmod -A || true
fi
exit 0
DESCRIPTION = "Script to manage module configuration files"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
-PR = "r3"
+PR = "r4"
SRC_URI = "file://update-modules"
exit 1
fi
update-modules
-/etc/init.d/modutils.sh
}
do_install() {