1. It fies the one reported bellow by Bruno, and
2. It handles secure level 2 properly. Bruno Bigras <blood at burnbox dot net> ok maint
This commit is contained in:
parent
2c40dff8b0
commit
9b62567b4d
@ -86,23 +86,31 @@ fi
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ `sysctl kern.securelevel|awk -F"=" '{print $2}'` == 1 ]]
|
if [[ `sysctl -n kern.securelevel` -ge 1 ]]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
if [[ `modstat|grep afs` == "" ]]
|
||||||
|
then
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
#######################################
|
#######################################
|
||||||
You are running at a secure level that does not allow for loading
|
You are running at a secure level that does not allow for loading
|
||||||
kernel modules. An update has been made to /etc/rc.securelevel in
|
kernel modules. An update has been made to /etc/rc.securelevel in
|
||||||
order to load OpenAFS on the next reboot.
|
order to load OpenAFS on the next reboot.
|
||||||
Please reboot for this to take effect.
|
Please reboot for this to take effect.
|
||||||
Then just rerun this script to continue the setup.
|
Then just rerun this script to continue the setup.
|
||||||
#######################################
|
#######################################
|
||||||
EOF
|
EOF
|
||||||
exit
|
exit
|
||||||
else
|
|
||||||
if [[ `modstat|grep afs` == "" ]]
|
fi
|
||||||
then
|
|
||||||
/sbin/modload %LOCALBASE%/lib/openafs/libafs.o
|
else # not running in secure level >= 1
|
||||||
fi
|
|
||||||
|
if [[ `modstat|grep afs` == "" ]]
|
||||||
|
then
|
||||||
|
/sbin/modload %LOCALBASE%/lib/openafs/libafs.o
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test if arla is mounted. If so unmount
|
# Test if arla is mounted. If so unmount
|
||||||
|
Loading…
Reference in New Issue
Block a user