blob: 77d5f92204fecafff91e414388210db605630488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
KERNEL="$(uname -r)"
TARGET="usr/lib/modules/$KERNEL"
if grep -F -q "$TARGET"; then
linux-preserve-modules unlink-all
linux-preserve-modules copy
else
echo "info: nothing to copy" >&2
exit 0
fi
|