aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/init.sh
blob: 82d39648e15cdbc20e4b365740bf0093675d1a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

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


if [[ ${1} == custom ]]; then
	/etc/security/msec/init-sh/custom.sh
	exit 0;
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