aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level5.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-11-25 20:24:53 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-11-25 20:24:53 +0000
commit93b4db587a0d9d372c04b9347efdacf2b9e78ff3 (patch)
treef769900aefa1584c8b226d97f651ffee4d68da07 /init-sh/level5.sh
parent78b13ca5f0677f9e6e5a07a18473a2d7724b51d0 (diff)
downloadmsec-93b4db587a0d9d372c04b9347efdacf2b9e78ff3.tar
msec-93b4db587a0d9d372c04b9347efdacf2b9e78ff3.tar.gz
msec-93b4db587a0d9d372c04b9347efdacf2b9e78ff3.tar.bz2
msec-93b4db587a0d9d372c04b9347efdacf2b9e78ff3.tar.xz
msec-93b4db587a0d9d372c04b9347efdacf2b9e78ff3.zip
level[45].sh : use the new --msec option when calling chkconfig
msec.spec : updated release version number
Diffstat (limited to 'init-sh/level5.sh')
-rwxr-xr-xinit-sh/level5.sh16
1 files changed, 3 insertions, 13 deletions
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index f2b7a55..f78de51 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -39,24 +39,14 @@ LiloUpdate;
/sbin/lilo
# Disable all server :
+AddRules "SECURE_LEVEL=5" /etc/profile
IFS="
"
+export SECURE_LEVEL=5
for service in `chkconfig --list | awk '{print $1}'`; do
- if [ "${service}" == "xfs" ]; then
- if [ ${HAVE_X}==1 ]; then
- continue;
- fi
- fi
-
- if [ "${service}" == "network" ]; then continue; fi
- if [ "${service}" == "keytable" ]; then continue; fi
- if [ "${service}" == "crond" ]; then continue; fi
- if [ "${service}" == "gpm" ]; then continue; fi
- if [ "${service}" == "syslog" ]; then continue; fi
-
-
chkconfig --del "${service}"
+ chkconfig --msec --add "${service}"
done
# Permissions