|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/auth2,v 1.1 2004/03/23 20:18:49 dragonheart Exp $ | # $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/auth2,v 1.1 2004/03/23 20:18:49 dragonheart Exp $ |
| |
|
|
depend() { | depend() { |
need net | need net |
} | } |
| |
checkconfig() { | checkconfig() { |
if [ ! -e /var/lib/vice/hostname ] ; then |
if [ ! -e /etc/coda/server.conf ] ; then |
eerror "Please set up vice before starting the service..." |
eerror "Please run vice-setup before starting the service..." |
|
return 1 |
|
fi |
|
eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice` |
|
if [ ! -e $vicedir/hostname ] ; then |
|
eerror "Please run vice-setup before starting the service..." |
return 1 | return 1 |
fi | fi |
} | } |
| |
we_are_scm() { | we_are_scm() { |
if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then |
if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then |
return 0 | return 0 |
else | else |
return 1 | return 1 |
|
|
} | } |
| |
we_are_scm() { | we_are_scm() { |
if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then |
if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then |
return 0 | return 0 |
else | else |
return 1 | return 1 |
|
|
} | } |
| |
checkconfig() { | checkconfig() { |
if [ ! -e /var/lib/vice/hostname ] ; then |
|
eerror "Please set up coda before starting the service..." |
if [ ! -e /etc/coda/server.conf ] ; then |
return 1 |
eerror "Please run vice-setup before starting the service..." |
fi |
return 1 |
|
fi |
|
eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice` |
|
if [ ! -e $vicedir/hostname ] ; then |
|
eerror "Please run vice-setup before starting the service..." |
|
return 1 |
|
fi |
} | } |
| |
start() { | start() { |
|
|
} | } |
| |
checkconfig() { | checkconfig() { |
if [ ! -e /var/lib/vice/hostname ] ; then |
if [ ! -e /etc/coda/server.conf ] ; then |
eerror "Please set up vice before starting the service..." |
eerror "Please run vice-setup before starting the service..." |
return 1 |
return 1 |
fi |
fi |
|
eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice` |
|
if [ ! -e $vicedir/hostname ] ; then |
|
eerror "Please run vice-setup before starting the service..." |
|
return 1 |
|
fi |
} | } |
| |
we_are_scm() { | we_are_scm() { |
if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then |
if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then |
return 0 | return 0 |
else | else |
return 1 | return 1 |