X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fkernel%2FMakefile;h=e5094ef01142360af222717947330a08963f97df;hb=eb3a7eb2fcbedb7b831227d413270baf7641bbd2;hp=c977501e089f511ea7be56e149b83d6b647b7427;hpb=ce1a7b70f98465a879ca43a3a904fb7e1d1381f4;p=openwrt-10.03%2F.git diff --git a/package/kernel/Makefile b/package/kernel/Makefile index c977501e0..e5094ef01 100644 --- a/package/kernel/Makefile +++ b/package/kernel/Makefile @@ -45,8 +45,8 @@ define ModuleAutoLoad $(3) \ if [ -n "$$$$$$$$modules" ]; then \ mkdir -p $(2)/etc/modules.d; \ - echo "#!/bin/sh" >> $(2)/CONTROL/postinst; \ - echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit" >> $(2)/CONTROL/postinst; \ + echo "#!/bin/sh" > $(2)/CONTROL/postinst; \ + echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \ echo ". /etc/functions.sh" >> $(2)/CONTROL/postinst; \ echo "load_modules $$$$$$$$modules" >> $(2)/CONTROL/postinst; \ chmod 0755 $(2)/CONTROL/postinst; \ @@ -72,12 +72,14 @@ define KernelPackage endef ifeq ($(findstring m,$(KCONFIG)),m) + ifneq ($(strip $(FILES)),) define Package/kmod-$(1)/install mkdir -p $$(1)/lib/modules/$(LINUX_VERSION) $(CP) $$(FILES) $$(1)/lib/modules/$(LINUX_VERSION)/ $(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD)) endef endif + endif $$(eval $$(call BuildPackage,kmod-$(1))) endef