diff options
Diffstat (limited to 'init-sh/init.sh')
-rwxr-xr-x | init-sh/init.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/init-sh/init.sh b/init-sh/init.sh new file mode 100755 index 0000000..4e89cb9 --- /dev/null +++ b/init-sh/init.sh @@ -0,0 +1,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 + |