#!/bin/sh
# Arg: 1
# otu-scripts - postinst
if [ x"$D" = "x" ]; then
        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
    else
        exit 1
    fi