pmaports/device/main/device-pine64-pinephone
Oliver Smith 62453b9e7d
pine64-pinephone: fix pre-upgrade script (MR 2512)
Use -f, so rm
* does not complain if the file does not exist
* does not exit with 1 if the file does not exist

Remove the stdout/stderr redirect (not needed with -f).

Add exit 0 at the end of the file, even though it clearly should not
exit with anything other than 0 anymore, as it's common practice in
these pre-upgrade etc. scripts.

With the old script, the problem was that it would exit 1 as soon as the
files did not exist at the time the script runs. Exit 1 in this
pre-upgrade script causes apk to show an error, and it would not go away
with 'apk fix' since it ran into the same problem.

Fixes: 7c511d ("pine64-pinephone: remove old u-boot...")
2021-09-12 22:29:14 +02:00
..
ucm device-pine64-pinephone: change ucm2 install path to support 5.14 kernel (MR 2471) 2021-09-05 13:43:07 -07:00
00_alsa_pinephone_dshare.conf pine64-pinephone: move shelli alsa cfg to subpkg (MR 1902) 2021-01-27 09:29:03 +01:00
10-pinephone-proximity.rules pine64-pinephone: move from community to main (MR 1752) 2020-12-02 02:30:13 +01:00
60-flashlight.rules pine64-pinephone: change permissions of flashlight so PlaMo can toggle it (MR 1894) 2021-01-27 10:03:33 +01:00
70-wifi-pm.rules device-pine64-pinephone: add udev rule for toggling wifi PM on charger change (MR 1863) 2021-01-11 23:30:17 -08:00
90-modem-eg25.rules pine64-pinephone: move from community to main (MR 1752) 2020-12-02 02:30:13 +01:00
APKBUILD pine64-pinephone: fix pre-upgrade script (MR 2512) 2021-09-12 22:29:14 +02:00
device-pine64-pinephone.post-install device-pine64-pinephone: do not rely on modem-power from kernel (MR 1815) 2021-01-08 15:28:11 -08:00
device-pine64-pinephone.post-upgrade device-pine64-pinephone: enable eg25-manager in post-upgrade (MR 1867) 2021-01-10 12:36:39 -08:00
device-pine64-pinephone.pre-upgrade pine64-pinephone: fix pre-upgrade script (MR 2512) 2021-09-12 22:29:14 +02:00
deviceinfo device-pine64-pinephone: stop using legacy u-boot initrd (MR 2449) 2021-08-27 11:40:48 -07:00
gpsd_device-hook.sh pine64-pinephone: move from community to main (MR 1752) 2020-12-02 02:30:13 +01:00
gpsd_pinephone.initd pine64-pinephone: move from community to main (MR 1752) 2020-12-02 02:30:13 +01:00
hwtest.ini pine64-pinephone: move from community to main (MR 1752) 2020-12-02 02:30:13 +01:00
kirigami-lowpower.sh pine64-pinephone: enable Kirigami lowpower mode (MR 1928) 2021-02-11 09:50:05 +01:00
modemmanager.conf device-pine64-pinephone: use quick suspend/resume hooks (MR 2187) 2021-07-11 14:53:13 -07:00
pulse-pinephone.conf device-pine64-pinephone: improve PulseAudio sample rate 2021-06-02 18:57:48 +02:00
setup-modem.sh pine64-pinephone: fix pinephone_modem-setup to correctly invoke atinout (MR 2462) 2021-08-26 00:34:46 -07:00
uboot-script.cmd device-*: don't use 'flavor' in kernel/initramfs names (MR 2426) 2021-09-03 10:29:07 -07:00
UPower.conf device-pine64-pinephone: shutdown on critical battery (MR 2193) 2021-05-30 15:53:01 +02:00