base-files: /lib/functions.sh: ignore errors in insert_modules
Package postinst will pass even names of builtin modules to insert_modules, leading to postinst failing with error 255. This has been fixed in master in r5279, but for lede-17.01 this minimal change is preferable. Fixes FS#645, FS#893. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
include $(INCLUDE_DIR)/version.mk
|
include $(INCLUDE_DIR)/version.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=173.5
|
PKG_RELEASE:=173.6
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ insert_modules() {
|
|||||||
if [ -f /etc/modules.d/$m ]; then
|
if [ -f /etc/modules.d/$m ]; then
|
||||||
sed 's/^[^#]/insmod &/' /etc/modules.d/$m | ash 2>&- || :
|
sed 's/^[^#]/insmod &/' /etc/modules.d/$m | ash 2>&- || :
|
||||||
else
|
else
|
||||||
modprobe $m
|
modprobe $m || :
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user