#!/bin/sh
#
# $Id: unlinkjail 7305 2011-02-27 16:23:19Z NiLuJe $
#

# Pull some helper functions for logging
_FUNCTIONS=/etc/rc.d/functions
[ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS}

LINKJAIL_BASEDIR="/mnt/us/linkjail"

# Do we have stuff to unmount? (Always go back to default keys @ boot)
if grep "^fsp /etc/uks/pubprodkey01.pem" /proc/mounts > /dev/null 2>&1 ; then
    msg "unmounting custom key" I
    umount -l /etc/uks/pubprodkey01.pem
else
    msg "nothing to do" I
fi
