Created by: Snawoot
Purpose of proposed changes
This PR implements features discussed in #162 (closed) and aimed to make automation around patch.sh straightforward. As a result, it will be trivial to put together automated patching for latest driver updates.
Essential steps taken
- Refactored patch.sh to split code into routines and define mutually exclusive modes of operation.
- New mode of operation: check if specific version is supported. Example:
./patch.sh -c 430.50
- New mode of operation: list supported versions. Example:
./patch.sh -l
- Idempotent invocation: subsequent invocations of
patch.sh
detect driver file different from original and do nothing.