kernel-install: run depmod only if writeable
This commit is contained in:
committed by
Lennart Poettering
parent
a91078bc57
commit
dd003f1621
@@ -23,6 +23,8 @@ set -e
|
||||
COMMAND="${1:?}"
|
||||
KERNEL_VERSION="${2:?}"
|
||||
|
||||
[ -w "/lib/modules" ] || exit 0
|
||||
|
||||
case "$COMMAND" in
|
||||
add)
|
||||
[ -d "/lib/modules/$KERNEL_VERSION/kernel" ] || exit 0
|
||||
|
||||
Reference in New Issue
Block a user