first commit
This commit is contained in:
10
external/packages/bsp/common/etc/initramfs/post-update.d/99-uboot
vendored
Executable file
10
external/packages/bsp/common/etc/initramfs/post-update.d/99-uboot
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/orangepi-release
|
||||
|
||||
echo "update-initramfs: Converting to u-boot format" >&2
|
||||
tempname="/boot/uInitrd-$1"
|
||||
mkimage -A $INITRD_ARCH -O linux -T ramdisk -C gzip -n uInitrd -d $2 $tempname > /dev/null
|
||||
|
||||
ln -sf $(basename $tempname) /boot/uInitrd > /dev/null 2>&1 || mv $tempname /boot/uInitrd
|
||||
exit 0
|
||||
Reference in New Issue
Block a user