# otu-scripts - postinst
#!/bin/sh
set -e

if [ -n "$D" ]; then
    $INTERCEPT_DIR/postinst_intercept delay_to_first_boot otu-scripts mlprefix=
    exit 0
fi
    if [ -f /usr/lib/jdsu/scripts/otu_verify_viavidefkey.sh ]; then
        /usr/lib/jdsu/scripts/otu_verify_viavidefkey.sh  RCN /root/.ssh/default_root_key_4096.pub  /root/.ssh/authorized_keys
        echo "$0 $(date '+%d/%m/%Y %H:%M:%SOURCE') --  Completed the vetting of the root authorized_keys file"
        exit 0
    else
        echo "$0 $(date '+%d/%m/%Y %H:%M:%SOURCE') --  Did not vet the root authorized_keys file.  File otu_verify_viavidefkey.sh is not available."
        exit 1
    fi