#!/bin/sh
if [ "${1:-}" = "-x" ] ; then set -xv; shift; fi
set -u  # force better programming and ability to use check for not set

lockdir=/var/lock/hsm
lockfile=/var/lock/hsm/lockfile

if [ ! -d $lockdir ] ; then  mkdir -p $lockdir ; fi


touch $lockfile

# Should investigate if the sticky bit could protect us from a malicios user
# deleting this file.

chmod +w $lockfile



