Whamcloud - gitweb
LU-10003 lnet: migrate old route API to Netlink / YAML API
[fs/lustre-release.git] / debian / postrm
1 #!/bin/bash
2 # SPDX-License-Identifier: NOASSERTION
3
4 #
5 # This file is part of Lustre, http://www.lustre.org/
6 #
7 # debian/postrm
8 #
9 # Script run before Lustre module/utils are removed
10 #
11
12 DEPMOD_DIR="/etc/depmod.d"
13 LUSTRE_DEPMOD_FILE="${DEPMOD_DIR}/lustre.conf"
14
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}; }
18
19 depmod -a