]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Exit in openafs-client if not installed, load lsb functions
authorRuss Allbery <eagle@eyrie.org>
Sun, 22 Dec 2013 21:27:39 +0000 (13:27 -0800)
committerRuss Allbery <eagle@eyrie.org>
Sun, 22 Dec 2013 21:27:39 +0000 (13:27 -0800)
* 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.

debian/changelog
debian/openafs-client.init

index b6a8aec77e8ecc13513ea83a7d4804d582668646..191cbb0f483dfe528f3328503e4811de07b75063 100644 (file)
@@ -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 <rra@debian.org>  Sun, 22 Dec 2013 12:54:32 -0800
index b04e95bcadaa204c38a2286798a19f2bff2f9f85..0f8518c47a09c3c916f5e0073d9452e89fae1eaf 100755 (executable)
@@ -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 </dev/null