#!/bin/bash
# Remove the CASA pam entries from pam files.
SERVER=`grep -i server /etc/SuSE-release`

if [ "$SERVER" != "" ]
then
    exit 0
else

    prefix="/etc/pam.d"
    for pam_file in "$prefix/login" "$prefix/sshd" "$prefix/xdm" "$prefix/gdm" "$prefix/kdm" "$prefix/passwd" "$prefix/gnome-passwd"
    do
	    if [ -f $pam_file ]
	    then
		    sed -i '/pam_micasa/d' $pam_file
	    fi
    done
fi
