-Ober
Richard Chesler: [Reading a piece of paper] The first rule of Fight Club is you
don't talk about Fight Club?
Narrator: [Voice-over] I'm half asleep again; I must've left the original in
the copy machine.
Richard Chesler: The second rule of Fight Club - is this yours?
Narrator: Huh?
Richard Chesler: Pretend you're me, make a managerial decision: you find this,
what would you do?
--- ports/net/openafs/files/openafs-setup.orig Wed Feb 8 22:00:45 2006
+++ ports/net/openafs/files/openafs-setup Thu Feb 9 16:43:40 2006
@@ -86,23 +86,31 @@
EOF
fi
-if [[ `sysctl kern.securelevel|awk -F"=" '{print $2}'` == 1 ]]
+if [[ `sysctl -n kern.securelevel` -ge 1 ]]
then
+
+ if [[ `modstat|grep afs` == "" ]]
+ then
+
cat <<EOF
- #######################################
- 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
- order to load OpenAFS on the next reboot.
- Please reboot for this to take effect.
- Then just rerun this script to continue the setup.
- #######################################
+ #######################################
+ 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
+ order to load OpenAFS on the next reboot.
+ Please reboot for this to take effect.
+ Then just rerun this script to continue the setup.
+ #######################################
EOF
- exit
-else
- if [[ `modstat|grep afs` == "" ]]
- then
- /sbin/modload %LOCALBASE%/lib/openafs/libafs.o
- fi
+exit
+
+ fi
+
+else # not running in secure level >= 1
+
+ if [[ `modstat|grep afs` == "" ]]
+ then
+ /sbin/modload %LOCALBASE%/lib/openafs/libafs.o
+ fi
fi
# Test if arla is mounted. If so unmount