# /bin/bash
read -p "choose the status of selinux: open or close ?: " STATUS
SELINUX=`sed -n '/^SELINUX=/p' ./config`
if [ $STATUS = "open" ]; then
sed -i "7c SELINUX=enforcing" ./config
else
sed -i "7c SELINUX=disabled" ./config
fi
echo "the selinux is $STATUS"