#!/bin/sh

if [ "$1" == "" ]; then
    echo Usage: $0 devnum
    echo NO
    exit 3
fi

T="/faketape/${1}.aws"
Z="${T}.gz"
if [ ! -f "${Z}" ] ; then
    echo No ${Z}
    echo NO
    exit 2
fi

if [ ! -f ${T} ] ; then
    echo No ${T} -- gzip done
    echo YES
    exit 0
fi

echo Both ${T} and ${Z} -- gzip still running
echo NO
exit 1


