mirror of
https://github.com/armbian/build.git
synced 2025-08-31 11:21:27 +02:00
11 lines
309 B
Bash
Executable File
11 lines
309 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /etc/armbian-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
|