aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/init.sh
blob: 4e89cb9883f0c8834f10901a155cfa764ace359e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ -z $1 ]; then
	echo "Usage : $0 [0-5]"
	exit 1
fi


if [ -f /etc/security/msec/init-sh/level$1.sh ]; then
    /etc/security/msec/init-sh/level$1.sh
	if [ -f /etc/security/msec/init-sh/perm.$1 ]; then
		/etc/security/msec/init-sh/file_perm.sh /etc/security/msec/init-sh/perm.$1
	else
		echo "Couldn't find the default permissions for level $1."
	fi
else
    echo "Security level $1 not availlable..."
fi