Update toolkit, sdxpinn patch and mount-fix

This commit is contained in:
Cameron Thompson
2025-01-26 17:32:24 -05:00
parent a9b961c763
commit 901fed57c5
5 changed files with 24 additions and 458 deletions

View File

@@ -1,6 +1,6 @@
Package: sdxpinn-patch
Depends: sdxpinn-mount-fix
Version: 2
Version: 2.5
Architecture: all
Maintainer: Cameron Thompson iamromulan@github.com
Source: github.com/iamromulan

View File

@@ -162,6 +162,21 @@ repo_iamromulanSDXPINN_check() {
return 0
}
noprerm_mount-fix() {
if [ -f /real_rootfs/usr/lib/opkg/info/sdxpinn-mount-fix.prerm ]; then
mount -o remount,rw /real_rootfs
sleep 1
rm /real_rootfs/usr/lib/opkg/info/sdxpinn-mount-fix.prerm
sleep 1
mount -o remount,ro /real_rootfs
fi
if [ -f /usr/lib/opkg/info/sdxpinn-mount-fix.prerm ]; then
rm /usr/lib/opkg/info/sdxpinn-mount-fix.prerm
fi
}
opkg_arch_patch() {
if [ ! -f /etc/opkg/arch.conf ]; then
cat > /etc/opkg/arch.conf << 'EOF'
@@ -189,11 +204,7 @@ echo -e "\e[92mEnsuring iamromulan's SDXPINN repo is listed in customfeeds and p
repo_iamromulanSDXPINN_check
echo -e "\e[92miamromulan's SDXPINN repo source and key is installed.\e[0m"
echo -e "\e[92mEnsuring mount-fix does not have a prerm\e[0m"
mount -o remount,rw /real_rootfs
rm /real_rootfs/usr/lib/opkg/info/sdxpinn-mount-fix.prerm
sleep 1
mount -o remount,ro /real_rootfs
rm /usr/lib/opkg/info/sdxpinn-mount-fix.prerm
noprerm_mount-fix
echo -e "\e[92mEnsuring opkg reconizes needed archs\e[0m"
opkg_arch_patch
echo -e "\e[92msdxpinn-patch process complete.\e[0m"