PREIN
/bin/sh
#
# On upgrade, when pmt.conf exists and pmt.conf.xml does not,
# create pmt.conf.xml with size 0 to signal conversion.
#
f="/etc/security/pam_mount.conf";
if [ "$1" -eq 2 -a -e "$f" ]; then
touch -a "$f.xml";
fi;
POSTIN
/bin/sh
#
# pmt.conf.xml always exists now.
#
f="/etc/security/pam_mount.conf";
if [ -e "$f" -a ! -s "$f.xml" ]; then
"/usr/sbinls /convert_pam_mount_conf.pl" \
<"$f" >"$f.xml";
echo -en "Configuration migration from pam_mount.conf to pam_mount.conf.xml ";
if [ "$?" -eq 0 ]; then
echo "successful - also please check any ~/.pam_mount.conf files.";
else
echo "failed";
fi;
fi;