fix initscript removal of profiles without attachment specification

This commit is contained in:
John Johansen 2008-04-24 18:34:21 +00:00
parent 51558b0b19
commit 10a2b621f4

View file

@ -374,6 +374,9 @@ remove_profiles() {
retval=0
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | while read profile ; do
if [ ${profile:0:1} eq "/" ] ; then
$profile = "profile_$profile";
fi
echo "\"$profile\" { }" | $PARSER -R >/dev/null
rc=$?
if [ ${rc} -ne 0 ] ; then