2 # SPDX-License-Identifier: NOASSERTION
5 # This file is part of Lustre, http://www.lustre.org/
9 # Script run before Lustre module/utils are removed
12 DEPMOD_DIR="/etc/depmod.d"
13 LUSTRE_DEPMOD_FILE="${DEPMOD_DIR}/lustre.conf"
15 [ -e ${LUSTRE_DEPMOD_FILE} ] && { rm -f ${LUSTRE_DEPMOD_FILE}; }
16 # If DEPMOD_DIR is empty, we also created it, thus remove it.
17 [ ! "$(ls -A ${DEPMOD_DIR} 2>/dev/null)" ] && { rm -rf ${DEPMOD_DIR}; }