crontab: Use /sys/fs/selinux and /selinux instead of /etc/selinux to find out if SELinux is around.

This commit is contained in:
Ville Skyttä 2011-05-29 19:02:13 +03:00
parent 0bd41f4edb
commit fa2876b51d

View File

@ -16,7 +16,7 @@ _crontab()
local -A opts=( [-u]= [-l]= [-r]= [-e]= )
[[ $OSTYPE == *linux* ]] && opts[-i]=
[ -e /etc/selinux ] && opts[-s]=
[[ -d /sys/fs/selinux || -d /selinux ]] && opts[-s]=
local i
for (( i=0; i < ${#words[@]}-1; i++ )); do