blob: f8bcd59f227b1dcb540b6807b2445cfe3273e0b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh -e
# Copy the *.dtbo's into the initramfs
if [ "$1" = "prereqs" ]; then exit 0; fi
. /usr/share/initramfs-tools/hook-functions
if [ -d /lib/firmware/ ] ; then
unset check
check=$(ls /lib/firmware/ | grep dtbo | head -n 1)
if [ ! "x${check}" = "x" ] ; then
mkdir -p $DESTDIR/lib/firmware/
cp -a /lib/firmware/*.dtbo $DESTDIR/lib/firmware/
fi
fi
|