[20535] in Athena Bugs

home help back first fref pref prev next nref lref last post

OpenAFS: start AFS with no network if you use -dynroot

daemon@ATHENA.MIT.EDU (Derek Atkins)
Wed Jul 31 17:03:10 2002

To: openafs-bugs@openafs.org
Cc: bugs@mit.edu
From: Derek Atkins <warlord@MIT.EDU>
Date: 31 Jul 2002 17:00:24 -0400
Message-ID: <sjmbs8nfw9j.fsf@kikki.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

This is a patch (from the Athena openafs distribution) to the
linux rc script.  The problem:  Even if you run afs with -dynroot,
it will fail to start AFS if you are not on the network.  This
patch changes that behavior, so if you are not on the network 
and you run with -dynroot it will still allow you to start AFS.

-derek

--- openafs~    Thu Jul 18 14:51:38 2002
+++ openafs     Wed Jul 31 12:54:45 2002
@@ -248,7 +248,9 @@
 case "$1" in 
   start)
     if [ ! "$afs_rh" -o ! -f /var/lock/subsys/openafs ]; then
-       on_network || exit 1
+       if [ `echo "$OPTIONS" | grep -c dynroot` = 0 ]; then
+           on_network || exit 1
+       fi
 
        athena_afsadjust
        choose_afsdoptions

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available

home help back first fref pref prev next nref lref last post