Integrate bundled packages

This commit is contained in:
iamromulan
2024-10-04 21:40:31 -04:00
parent ae23d55274
commit f7e89663ee
10 changed files with 49 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
Package: sdxpinn-mount-fix
Version: 1.0.1
Version: 1.0.2
Architecture: aarch64_cortex-a53
Maintainer: Cameron Thompson iamromulan@github.com
Description: Creates a usable mount space and overlay for SDXPINN modems

View File

@@ -1,5 +1,11 @@
#!/bin/ash
# Define the package name
PKG_NAME="sdxpinn-mount-fix"
# Define the list file location
LIST_FILE="/usr/lib/opkg/info/${PKG_NAME}.list"
# Replace distfeeds.conf with non-working sources commented out
# Check if the temporary distfeeds.conf file exists
if [ -f /tmp/distfeeds.conf ]; then
@@ -17,6 +23,17 @@ else
exit 1
fi
echo "Combo package cleanup in progress..."
# Check if the .list file exists and modify it
if [ -f "$LIST_FILE" ]; then
# Remove any lines that start with /usr/lib/opkg/info/
sed -i '/^\/usr\/lib\/opkg\/info\//d' "$LIST_FILE"
echo "Removed control file entries from $LIST_FILE."
else
echo "Warning: ${LIST_FILE} not found."
fi
# Make the init script executable
chmod +x /etc/init.d/mount-fix
@@ -27,8 +44,6 @@ chmod +x /usr/sbin/init-overlay-watchdog.sh
service mount-fix enable
service mount-fix start
sleep 1
opkg install /tmp/libinotifytools_3.20.11.0-1_aarch64_cortex-a53.ipk
opkg install /tmp/inotifywait_3.20.11.0-1_aarch64_cortex-a53.ipk
service init-overlay-watchdog enable
service init-overlay-watchdog start
echo -e "\e[32m sdxpinn-mount-fix installed! Here is the new file structure! \e[0m"
@@ -36,4 +51,31 @@ echo -e "\e[32m ============================================================ \e[
mount && df -h
echo -e "\e[32m ============================================================ \e[0m"
echo -e "\e[32m sdxpinn-mount-fix installed! New file structure above! \e[0m"
# Define the target bundled package name for this script
BUNDLED_PACKAGE_NAME_1="libinotifytools"
# Check if the IPKG_NO_SCRIPT flag is set or if the required functions script is missing
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
# Source the necessary functions
. ${IPKG_INSTROOT}/lib/functions.sh
# Use the target package name for default_postinst instead of $0
default_postinst "${BUNDLED_PACKAGE_NAME_1}" $@
# Define the target bundled package name for this script
BUNDLED_PACKAGE_NAME_2="inotifywait"
# Check if the IPKG_NO_SCRIPT flag is set or if the required functions script is missing
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
# Source the necessary functions
. ${IPKG_INSTROOT}/lib/functions.sh
# Use the target package name for default_postinst instead of $0
default_postinst "${BUNDLED_PACKAGE_NAME_2}" $@
exit 0