15 lines
473 B
Bash
Executable File
15 lines
473 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
mkdir -p "${ROOTFS_DIR}/boot/firmware"
|
|
|
|
if ! [ -L "${ROOTFS_DIR}/boot/overlays" ]; then
|
|
ln -s firmware/overlays "${ROOTFS_DIR}/boot/overlays"
|
|
fi
|
|
|
|
install -m 644 files/cmdline.txt "${ROOTFS_DIR}/boot/firmware/"
|
|
install -m 644 files/config.txt "${ROOTFS_DIR}/boot/firmware/"
|
|
|
|
for file in cmdline.txt config.txt; do
|
|
printf "DO NOT EDIT THIS FILE\n\nThe file you are looking for has moved to %s\n" "/boot/firmware/${file}" > "${ROOTFS_DIR}/boot/${file}"
|
|
done
|