---
dkms_common.postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dkms_common.postinst b/dkms_common.postinst
index d8cf3a7..0c8cfc1 100644
--- a/dkms_common.postinst
+++ b/dkms_common.postinst
@@ -146,7 +146,7 @@ if [ -z "$NAME" ] || [ -z "$VERSION" ]; then
exit 1
fi
-KERNELS=$(ls /lib/modules/)
+KERNELS=$(ls /lib/modules/ 2>/dev/null || true)
CURRENT_KERNEL=$(uname -r)
#We never want to keep an older version side by side to prevent conflicts
--
1.7.10
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]