[23571] in Source-Commits

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

/svn/athena r23212 - trunk/debathena/config/shell-config/debian

daemon@ATHENA.MIT.EDU (andersk@MIT.EDU)
Mon Oct 20 21:54:57 2008

Date: Mon, 20 Oct 2008 21:54:48 -0400 (EDT)
From: andersk@MIT.EDU
Message-Id: <200810210154.VAA23030@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: andersk
Date: 2008-10-20 21:54:47 -0400 (Mon, 20 Oct 2008)
New Revision: 23212

Modified:
   trunk/debathena/config/shell-config/debian/bashrc.debathena
   trunk/debathena/config/shell-config/debian/changelog
Log:
In shell-config:
  * Print a helpful message when aklog doesn't work.


Modified: trunk/debathena/config/shell-config/debian/bashrc.debathena
===================================================================
--- trunk/debathena/config/shell-config/debian/bashrc.debathena	2008-10-17 23:37:28 UTC (rev 23211)
+++ trunk/debathena/config/shell-config/debian/bashrc.debathena	2008-10-21 01:54:47 UTC (rev 23212)
@@ -10,7 +10,14 @@
 
 renew () {
     principal=`klist -5 2>/dev/null | sed -n 's/^Default principal: // p'`
-    kinit -54 "${principal:-${ATHENA_USER:-$USER}}" && aklog ;
+    kinit -54 "${principal:-${ATHENA_USER:-$USER}}" || return $?
+    [ -e /afs/athena.mit.edu ] && aklog || {
+	ret=$?
+	echo >&2
+	echo "Your AFS client does not seem to be working.  To troubleshoot this problem," >&2
+	echo "visit http://debathena.mit.edu/troubleshooting#openafs-modules" >&2
+	return $ret
+    }
 }
 
 add_flags=

Modified: trunk/debathena/config/shell-config/debian/changelog
===================================================================
--- trunk/debathena/config/shell-config/debian/changelog	2008-10-17 23:37:28 UTC (rev 23211)
+++ trunk/debathena/config/shell-config/debian/changelog	2008-10-21 01:54:47 UTC (rev 23212)
@@ -1,3 +1,9 @@
+debathena-shell-config (1.8) unstable; urgency=low
+
+  * Print a helpful message when aklog doesn't work.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Mon, 20 Oct 2008 21:53:57 -0400
+
 debathena-shell-config (1.7) unstable; urgency=low
 
   * Add Recommends: bash-completion, since programmable bash completion


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