Skip to content

Commit

Permalink
m1n1: hook: do nothing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dkwo committed Jan 1, 2025
1 parent 5704c8b commit 2255864
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions srcpkgs/m1n1/files/kernel.d/m1n1.post-install
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ if [ -e "$CONFIG" ]; then
fi

case "$PAYLOAD" in
none)
return 0
;;
kernel)
cat "${M1N1}" $m1n1config >"${TARGET}.new"
cat ${DTBS} >>"${TARGET}.new"
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/m1n1/files/m1n1-kernel-hook.confd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CONFIG=/etc/m1n1.conf
# payload can be either kernel or uboot (default)
PAYLOAD=uboot
# payload can be none (do nothing), kernel or uboot
PAYLOAD=none
# the location where kernel, initramfs, dtbs are located
BOOT=/boot
DTBS=${BOOT}/dtbs/"dtbs-${VERSION}"/apple/*.dtb
Expand Down

0 comments on commit 2255864

Please sign in to comment.