#!/bin/bash # set -e # variables INSTALL_DIR_PAM="/etc/security" CONF_DIR_PAM="msad" ######## # main # ######## eval $(llxcfg-showvars MSAD_ACTIVE) if [ $MSAD_ACTIVE ]; then { llxcfg-config read "$CONF_DIR_PAM/head"; llxcfg-config dump "$CONF_DIR_PAM/volume" ; llxcfg-config read "$CONF_DIR_PAM/foot" ;} | skel-install -t "${INSTALL_DIR_PAM}/pam_mount.conf.xml" fi exit 0