device-xiaomi-santoni: get rid of vibrator script and hybris ref (MR 3055)
The charging script does nothing other than annoy a few people, so get rid of it. While at it, let's remove hybris reference from the APKBUILD as hybrisOS is dead. Closes #1487 Signed-off-by: Dang Huynh <danct12@disroot.org>
This commit is contained in:
parent
4426b96684
commit
2db41b939e
4 changed files with 3 additions and 23 deletions
|
@ -3,8 +3,8 @@
|
|||
# Co-Maintainer: Danct12 <danct12@disroot.org>
|
||||
pkgname=device-xiaomi-santoni
|
||||
pkgdesc="Xiaomi Redmi 4X"
|
||||
pkgver=0.7
|
||||
pkgrel=3
|
||||
pkgver=0.8
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
|
@ -13,9 +13,6 @@ depends="postmarketos-base linux-xiaomi-santoni mkbootimg mesa-dri-swrast msm-fb
|
|||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="
|
||||
misc/100-charging.rules
|
||||
misc/charging.sh
|
||||
misc/discharging.sh
|
||||
ucm/90-device-xiaomi-santoni-audio.rules
|
||||
ucm/HiFi
|
||||
ucm/msm8920-sku7-snd-card.conf
|
||||
|
@ -33,11 +30,6 @@ package() {
|
|||
install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
|
||||
install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc
|
||||
|
||||
install -Dm755 "$srcdir"/charging.sh "$pkgdir"/usr/lib/device-xiaomi-santoni/charging.sh
|
||||
install -Dm755 "$srcdir"/discharging.sh "$pkgdir"/usr/lib/device-xiaomi-santoni/discharging.sh
|
||||
install -Dm644 "$srcdir"/100-charging.rules \
|
||||
"$pkgdir"/etc/udev/rules.d/100-charging.rules
|
||||
|
||||
# Disable v4l udev rules (video4linux), because without the camera
|
||||
# firmware blobs this makes udev helper hang (#1033)
|
||||
mkdir -p "$pkgdir"/etc/udev/rules.d
|
||||
|
@ -46,7 +38,7 @@ package() {
|
|||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Wi-Fi, ADSP Firmware (DON'T INSTALL IF USE **LIBHYBRIS**)"
|
||||
pkgdesc="Wi-Fi, ADSP Firmware"
|
||||
depends="firmware-xiaomi-santoni wcnss-wlan adsp-audio pulseaudio pulseaudio-alsa alsa-plugins-pulse alsa-utils"
|
||||
install="$pkgname-nonfree-firmware.post-install"
|
||||
mkdir "$subpkgdir"
|
||||
|
@ -60,9 +52,6 @@ nonfree_firmware() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
7b1b138372cb173be38e820a1c386c3d30930d6753303478ae08c1362de3099d81c26eb2b833c5a0b340a82d821bd53309058ecb9b62e00c7ff323b632af2346 100-charging.rules
|
||||
c4853babd5cd6371297e5e5d64364c064d540cd4beaba06d79b1001fe5c78fe3ee8bc5f6f4ba3e383743a09263028abc55f41bad45240b1c505e27ed087725c9 charging.sh
|
||||
6012be4184af6c4f12f9b20a6f2d377ebd72b9b334df4fbb921ed9d8da865633631f77d19b02748ebee70442e2f3ffcb6af511ee5deaa40635bc53730c301076 discharging.sh
|
||||
dc4bf7871307e659f220aebc3c9f7d74b861f46e1f3df1be37d724af984e46d91e553dbd36c2bd4482aa17dbe4d76d28dabe214952638f00830907466b110146 90-device-xiaomi-santoni-audio.rules
|
||||
3452fe367e7b199d610fb3d8e9113b35e04071afc7585080edb6fe584ecc29591d8f3ab53ed4583c1ccea5882aa51050d6e56a5db7ef88f6c9af648ba1ef88af HiFi
|
||||
7c702cf159699cea761ce7cb1ca21b79c59ceb3cdf1e410b537c4aa3a5aaa3be171b4c5555a713ac7a0e0f6dc389680cd5368a7783d14025fdc14d5f27fb922b msm8920-sku7-snd-card.conf
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
SUBSYSTEM=="power_supply", ATTRS{type}=="Battery", ATTRS{status}=="Charging", RUN+="/usr/lib/device-xiaomi-santoni/charging.sh"
|
||||
SUBSYSTEM=="power_supply", ATTRS{type}=="Battery", ATTRS{status}=="Discharging", RUN+="/usr/lib/device-xiaomi-santoni/discharging.sh"
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# We'll vibrate a bit here, then turn the led on.
|
||||
echo 500 > /sys/class/timed_output/vibrator/enable
|
||||
echo 100 > /sys/class/leds/white/brightness
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
echo 0 > /sys/class/leds/white/brightness
|
Loading…
Reference in a new issue