~mil/sxmo-devel

sxmo-utils: Wileyfox Swift battery level icon fix v1 APPLIED

Alex O
Alex O: 1
 Wileyfox Swift battery level icon fix

 2 files changed, 6 insertions(+), 2 deletions(-)
#508836 .build.yml failed
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/22787/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sxmo-utils] Wileyfox Swift battery level icon fix Export this patch

Alex O
---
 scripts/core/sxmo_statusbar.sh                         | 5 +++--
 scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh | 3 +++
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh

diff --git a/scripts/core/sxmo_statusbar.sh b/scripts/core/sxmo_statusbar.sh
index ae62a9d..b1c7e32 100755
--- a/scripts/core/sxmo_statusbar.sh
+++ b/scripts/core/sxmo_statusbar.sh
@@ -54,9 +54,10 @@ update() {
	fi

	# Battery pct
	PCT="$(cat /sys/class/power_supply/*-battery/capacity)"
	BATTERY_DEVICE="${BATTERY_DEVICE:-"/sys/class/power_supply/*-battery"}"
	PCT="$(cat "$BATTERY_DEVICE"/capacity)"
	BATSTATUS="$(
		cat /sys/class/power_supply/*-battery/status |
		cat "$BATTERY_DEVICE"/status |
		cut -c1
	)"
	if [ "$BATSTATUS" = "C" ]; then
diff --git a/scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh b/scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh
new file mode 100644
index 0000000..12ed601
--- /dev/null
+++ b/scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh
@@ -0,0 +1,3 @@
#!/bin/sh

export BATTERY_DEVICE="/sys/class/power_supply/pm8916-bms-vm"
-- 
2.25.1
builds.sr.ht
sxmo-utils/patches/.build.yml: FAILED in 20s

[Wileyfox Swift battery level icon fix][0] from [Alex O][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/22787
[1]: mailto:alex.o.alex.o@bk.ru

✗ #508836 FAILED sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/508836
Hi,

Thanks for this patch! I have fixed the shellcheck error and merged:

To git.sr.ht:~mil/sxmo-utils
   51815ac..b2fad74  master -> master

Cheers,
Anjan Momi
--
w:] www.momi.ca
pgp:] https://momi.ca/publickey.txt