aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/msec20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/msec b/share/msec
index d3e4e51..9a28027 100755
--- a/share/msec
+++ b/share/msec
@@ -6,8 +6,28 @@
# Version : $Id$
# Author : Frederic Lepied
# Created On : Thu Dec 13 11:36:50 2001
+# Purpose : entry script to run hardness script or change
+# the security level.
#---------------------------------------------------------------
+LCK=/var/run/msec.pid
+
+function cleanup() {
+ rm -f $LCK
+}
+
+if [ -f $LCK ]; then
+ if [ -d /proc/`cat $LCK` ]; then
+ exit 0
+ else
+ rm -f $LCK
+ fi
+fi
+
+echo -n $$ > $LCK
+
+trap cleanup 0
+
MSEC=/usr/share/msec/msec.py
OPT=""