Whamcloud - gitweb
LU-17054 lnet: Change cpt-of-nid to get result from kernel
[fs/lustre-release.git] / debian / postinst
1 #!/bin/bash
2 # SPDX-License-Identifier: NOASSERTION
3
4 #
5 # This file is part of Lustre, http://www.lustre.org/
6 #
7 # debian/postinst
8 #
9 # Script run before Lustre module/utils are installed
10 #
11
12 DEPMOD_DIR="/etc/depmod.d"
13 LUSTRE_DEPMOD_FILE="${DEPMOD_DIR}/lustre.conf"
14
15 [ ! -d ${DEPMOD_DIR} ] && { mkdir -p ${DEPMOD_DIR}; }
16 [ ! -e ${LUSTRE_DEPMOD_FILE} ] && { echo "search updates/kernel built-in" > ${LUSTRE_DEPMOD_FILE}; }
17
18 depmod -a