# viavi-boot - postinst
#!/bin/sh
set -e

if [ -n "$D" ]; then
    $INTERCEPT_DIR/postinst_intercept delay_to_first_boot viavi-boot mlprefix=
    exit 0
fi
#!/bin/sh -e
if [ -e /sbin/flash-uboot ]
then
    if [ -z "" ]
    then
        uboot_binary="$(readlink /boot/flash.bin || true)"
    else
        uboot_binary=""
    fi

    if [ -z "$uboot_binary" ]
    then
        uboot_binary="flash.bin"
    fi

    /sbin/flash-uboot "/boot/$uboot_binary"
fi