mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
config/functions: add function install_driver_addon_files
This commit is contained in:
parent
48c14e2124
commit
5df12e5de5
@ -344,6 +344,25 @@ done
|
|||||||
-i "$addon_xml"
|
-i "$addon_xml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_driver_addon_files() {
|
||||||
|
if [ "$#" -eq 0 ] ; then
|
||||||
|
printf "$(print_color CLR_ERROR "no module search path defined")\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
PKG_MODULE_DIR="$INSTALL/$(get_full_module_dir $PKG_ADDON_ID)/updates/$PKG_ADDON_ID"
|
||||||
|
PKG_ADDON_DIR="$INSTALL/usr/share/$MEDIACENTER/addons/$PKG_ADDON_ID"
|
||||||
|
|
||||||
|
mkdir -p $PKG_MODULE_DIR
|
||||||
|
find $@ -name \*.ko -exec cp {} $PKG_MODULE_DIR \;
|
||||||
|
|
||||||
|
find $PKG_MODULE_DIR -name \*.ko -exec $STRIP --strip-debug {} \;
|
||||||
|
|
||||||
|
mkdir -p $PKG_ADDON_DIR
|
||||||
|
cp $PKG_DIR/changelog.txt $PKG_ADDON_DIR
|
||||||
|
install_addon_files "$PKG_ADDON_DIR"
|
||||||
|
}
|
||||||
|
|
||||||
install_addon_files() {
|
install_addon_files() {
|
||||||
install_addon_source "$1"
|
install_addon_source "$1"
|
||||||
install_addon_images "$1"
|
install_addon_images "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user