Whamcloud - gitweb
LU-11607 tests: replace version/fstype in sanity-dom/quota
[fs/lustre-release.git] / debian / postrm
1 #!/bin/sh
2
3 DEPMOD_DIR="/etc/depmod.d"
4 LUSTRE_DEPMOD_FILE="${DEPMOD_DIR}/lustre.conf"
5
6 [ -e ${LUSTRE_DEPMOD_FILE} ] && { rm -f ${LUSTRE_DEPMOD_FILE}; }
7 # If DEPMOD_DIR is empty, we also created it, thus remove it.
8 [ ! "$(ls -A ${DEPMOD_DIR} 2>/dev/null)" ] && { rm -rf ${DEPMOD_DIR}; }
9
10 depmod -a