mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 05:12:18 +01:00
libkmod currently depends on kmod's depmod, so if anything needs libkmod it we need pull in kmod and run depmod. We do so with a trigger.
9 lines
96 B
Bash
9 lines
96 B
Bash
#!/bin/sh
|
|
|
|
for i in "$@"; do
|
|
if [ -d "$i" ]; then
|
|
/sbin/depmod ${i#/lib/modules/}
|
|
fi
|
|
done
|
|
|