File: libpsm2-2-compat.postinst.in

package info (click to toggle)
libpsm2 11.2.185-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,544 kB
  • sloc: ansic: 36,650; makefile: 659; sh: 216; asm: 59
file content (20 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

set -e

update-alternatives --install /usr/lib/@DEB_HOST_MULTIARCH@/libpsm_infinipath.so.@PSM_LIB_MAJOR@ \
	libpsm_infinipath.so.@PSM_LIB_MAJOR@ \
    /usr/lib/libpsm2-2/libpsm_infinipath.so.@PSM_LIB_VERSION@ 50

# trigger hfi1 devices to create /dev/ipath
if [ ! -e /dev/ipath ] ; then
	for DEV in /dev/hfi1_[0-9]; do
		if [ -c $DEV ] ; then
			udevadm trigger $DEV || true
		fi
	done
fi

#DEBHELPER#

exit 0