mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-05-03 05:20:37 +00:00
Check if DKMS is installed in install.sh and uninstall.sh.
This commit is contained in:
@@ -47,6 +47,12 @@ else
|
||||
echo "Install succeeded."
|
||||
fi
|
||||
|
||||
if ! command -v dkms >/dev/null; then
|
||||
echo "WARNING: DKMS is not installed, skipping driver installation."
|
||||
echo "To use the advanced features of OpenSuperClone you will have to install the driver manually."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
VERSION=$(grep -oP '(?<=set\(OSC_DRIVER_VERSION ).*(?=\))' ../CMakeLists.txt)
|
||||
VERSION=$(echo $VERSION | cut -d' ' -f1)
|
||||
echo "Found OSCDriver version $VERSION."
|
||||
|
||||
@@ -39,6 +39,12 @@ fi
|
||||
|
||||
echo "Done uninstalling OpenSuperClone from /usr/..."
|
||||
|
||||
if ! command -v dkms >/dev/null; then
|
||||
echo "WARNING: DKMS is not installed, skipping driver removal."
|
||||
echo "If the driver was installed manually, it will not be removed."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Uninstalling OSCDriver..."
|
||||
|
||||
if lsmod | grep -q oscdriver; then
|
||||
|
||||
Reference in New Issue
Block a user