+openafs (1.6.10-2) UNRELEASED; urgency=medium
+
+ * Some shell quoting and similar cleanups in openafs-client-precheck
+ from Anders Kaseorg.
+
+ -- Benjamin Kaduk <kaduk@mit.edu> Tue, 28 Oct 2014 18:52:47 -0400
+
openafs (1.6.10-1) unstable; urgency=medium
* New upstream release.
echo "required cacheinfo file does not exist" >&2
exit 1
fi
-if ! [ -d $(awk -F : '{print $1}' < "${CACHEINFO}") ]; then
+if ! [ -d "$(awk -F : '{print $1}' < "${CACHEINFO}")" ]; then
echo "AFS mountpoint is not a directory or does not exist" >&2
exit 1
fi
fi
# Ensure that the kernel module is loaded.
-if [ -z $(/sbin/lsmod | fgrep openafs) ]; then
+if ! /sbin/lsmod | grep -Fq openafs; then
modprobe openafs
status=$?
echo "Failed to load openafs.ko. Does it need to be built?" >&2
# We cannot fail hard on a missing module, though, as that will
# cause our unit to be put in a disabled state.
- if $(grep -q openafs "$MODULEROOT/modules.dep"); then
+ if grep -q openafs "$MODULEROOT/modules.dep"; then
exit $status
else
cat > /var/cache/openafs-client/openafs-client.env <<EOF