From c9df37aaa81bf797ecedf80f0e449eedcb3624b8 Mon Sep 17 00:00:00 2001
From: Jianhua Lu <lujianhua000@gmail.com>
Date: Fri, 9 Aug 2024 11:48:00 +0800
Subject: [PATCH] device-xiaomi-elish: drop pd-mapper and tqftpserv

---
 device/testing/device-xiaomi-elish/APKBUILD                  | 5 +----
 .../device-xiaomi-elish-nonfree-firmware.post-install        | 3 ---
 .../device-xiaomi-elish-nonfree-firmware.post-upgrade        | 1 -
 3 files changed, 1 insertion(+), 8 deletions(-)
 delete mode 100644 device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-install
 delete mode 120000 device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-upgrade

diff --git a/device/testing/device-xiaomi-elish/APKBUILD b/device/testing/device-xiaomi-elish/APKBUILD
index 9b93ef1f570..59c4854cd8f 100644
--- a/device/testing/device-xiaomi-elish/APKBUILD
+++ b/device/testing/device-xiaomi-elish/APKBUILD
@@ -3,7 +3,7 @@
 pkgname=device-xiaomi-elish
 pkgdesc="Xiaomi Mi Pad 5 Pro"
 pkgver=2
-pkgrel=0
+pkgrel=1
 url="https://postmarketos.org"
 license="MIT"
 arch="aarch64"
@@ -75,10 +75,7 @@ nonfree_firmware() {
 		firmware-xiaomi-elish-venus
 		linux-firmware-ath11k
 		linux-firmware-qca
-		pd-mapper
-		tqftpserv
 		"
-	install="$subpkgname.post-install $subpkgname.post-upgrade"
 	mkdir "$subpkgdir"
 }
 
diff --git a/device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-install b/device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-install
deleted file mode 100644
index 70b9e0efe21..00000000000
--- a/device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-install
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-rc-update add tqftpserv boot
-rc-update add pd-mapper boot
diff --git a/device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-upgrade b/device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-upgrade
deleted file mode 120000
index 07c18bba26b..00000000000
--- a/device/testing/device-xiaomi-elish/device-xiaomi-elish-nonfree-firmware.post-upgrade
+++ /dev/null
@@ -1 +0,0 @@
-device-xiaomi-elish-nonfree-firmware.post-install
\ No newline at end of file
-- 
GitLab