From: Russ Allbery Date: Sun, 22 Dec 2013 21:27:39 +0000 (-0800) Subject: Exit in openafs-client if not installed, load lsb functions X-Git-Tag: debian/1.6.5.2-1~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=03d95afc1d3e4ed8ae1be385268b88313164d998;p=packages%2Fo%2Fopenafs.git Exit in openafs-client if not installed, load lsb functions * Exit successfully in the openafs-client init script if /sbin/afsd doesn't exist, indicating that openafs-client is not installed. * Load /lib/lsdb/init-functions in the openafs-client init script as the first step towards upstart or systemd support. --- diff --git a/debian/changelog b/debian/changelog index b6a8aec77..191cbb0f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,10 @@ openafs (1.6.5.2-1) UNRELEASED; urgency=medium * New upstream release. - Fix support for tmpfs as the cache filesystem. - Support kernels with backported changes affecting getname/putname. + * Exit successfully in the openafs-client init script if /sbin/afsd + doesn't exist, indicating that openafs-client is not installed. + * Load /lib/lsdb/init-functions in the openafs-client init script as the + first step towards upstart or systemd support. * Update standards version to 3.9.5 (no changes required). -- Russ Allbery Sun, 22 Dec 2013 12:54:32 -0800 diff --git a/debian/openafs-client.init b/debian/openafs-client.init index b04e95bca..0f8518c47 100755 --- a/debian/openafs-client.init +++ b/debian/openafs-client.init @@ -33,6 +33,12 @@ MODULEROOT=${MODULEROOT:-/lib/modules/`uname -r`} MODULEDIR=${MODULEDIR:-$MODULEROOT/fs} DKMSDIR=${DKMSDIR:-$MODULEROOT/updates/dkms} +# Exit if the package is not installed. +[ -x /sbin/afsd ] || exit 0 + +# Define LSB log_* functions and get other support infrastructure. +. /lib/lsb/init-functions + exec 3>/dev/null exec