git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@27964
3c298f89-4303-0410-b956-
a3cf2f4a3e73
PKG_NAME:=block-extroot
PKG_VERSION:=0.0.1
-PKG_RELEASE:=2
+PKG_RELEASE:=2.1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
ln -sf /lib/modules/*/* /tmp/overlay/lib/modules/*/* /tmp/extroot_modules/modules
local modules="$(grep -l '# May be required for rootfs' /tmp/extroot_modules/modules.d/*)"
cd /tmp/extroot_modules/modules && {
- cat $modules | sed -e 's/^\([^#].*\)/insmod \.\/\1.ko/'| sh 2>&- || :
+ module_suffix=ko
+ case "$(uname -r)" in
+ 2.4.*) module_suffix=o ;;
+ esac
+ cat $modules | sed -e 's/^\([^#].*\)/insmod \.\/\1.'$module_suffix'/'| sh 2>&- || :
}
rm -rf /tmp/extroot_modules
}