pmaports/main/postmarketos-update-depthcharge-kernel/update-depthcharge-kernel.sh

18 lines
323 B
Bash
Raw Normal View History

#!/bin/sh
# GPL-3.0-or-later
set -e
# Declare used deviceinfo variables to pass shellcheck
deviceinfo_cgpt_kpart=""
# shellcheck disable=SC1091
. /etc/deviceinfo
partition=$(findfs PARTLABEL=pmOS_kernel)
echo "Flashing $deviceinfo_cgpt_kpart to $partition"
dd if="$deviceinfo_cgpt_kpart" of="$partition"
echo "Done."