_smb_nis: ${CFGROOT}
sed -Ei 's;^(passwd:|group:|shadow:|gshadow:) *;\1 nis ;' $${CFGROOT}/etc/nsswitch.conf
+ sed -Ei '/pam_(script|mount).so/d' $${CFGROOT}/etc/pam.d/common-*
printf '\nauth optional pam_mount.so\n' >>$${CFGROOT}/etc/pam.d/common-auth
printf '\nsession optional pam_mount.so\n' >>$${CFGROOT}/etc/pam.d/common-session
printf '\npassword required pam_script.so dir=/opt/pam_script\n' >$${CFGROOT}/etc/pam.d/common-password