Merge commit 'refs/top-bases/linux-kernel-mem' into linux-kernel-mem
This commit is contained in:
commit
390a325c38
|
@ -44,6 +44,7 @@ RMMOD=${RMMOD:-/sbin/rmmod}
|
||||||
INFOMOD=${INFOMOD:-/sbin/modinfo}
|
INFOMOD=${INFOMOD:-/sbin/modinfo}
|
||||||
LOSETUP=${LOSETUP:-/sbin/losetup}
|
LOSETUP=${LOSETUP:-/sbin/losetup}
|
||||||
SYSCTL=${SYSCTL:-/sbin/sysctl}
|
SYSCTL=${SYSCTL:-/sbin/sysctl}
|
||||||
|
UDEVADM=${UDEVADM:-/sbin/udevadm}
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo -e "${PROG}: $1" >&2
|
echo -e "${PROG}: $1" >&2
|
||||||
|
@ -210,8 +211,13 @@ udev_setup() {
|
||||||
|
|
||||||
cp -f ${SRC_PATH} ${DST_PATH}
|
cp -f ${SRC_PATH} ${DST_PATH}
|
||||||
|
|
||||||
udevadm trigger
|
if [ -f ${UDEVADM} ]; then
|
||||||
udevadm settle
|
${UDEVADM} trigger
|
||||||
|
${UDEVADM} settle
|
||||||
|
else
|
||||||
|
/sbin/udevtrigger
|
||||||
|
/sbin/udevsettle
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue