Script Updates#971
Open
Heartnett wants to merge 55 commits into
Open
Conversation
- added "Usage" section - whitespace trimmed
- function description comment added - if condition inverted - echo message rephrased
- renamed to "invalid_option" - error message rephrased - exits the script
- renamed to "get_xconfig_list" - local variable introduced - double quotes replaced with single quotes - count_conf_in_etc variable removed
- renamed to "dependencies_check" - function description comment updated - local variables introduced - missing script dependencies automatically installed (no user input required) - apt command replaced with apt-get - code refactored
- function replaced with cat command
- unsupported platform message added for Red Hat based linux distributions - LSB string check simplified
- boolean strings replaced with actual boolean values - code refactored
- renamed to "get_init_system" - init system name detection simplified - variables renamed - code refactored
- function description comment added - if-else-if statement replaced with case-in statement
- duplicate code patterns reduced to array and for loop
- function description comment added - local variables introduced - repeated strings moved into variables - code refactored
- bug fixed where the cat command would append the script code instead of just writing it - removed duplicate script code (already present in nvidia_xrandr function) - nvidia_xrandr function called to complete the script code
- repeated code patterns reduced to an array with a for-loop
- function description comment added - bug fixed when creating a symlink of libstd++.so.6 in a directory that might not exist - check added to exit the script if the systemd displaylink-driver.service does not exist - code refactored
- if-else-if-else statements replaced with case-in statement - comments added - ask_operation function removed
- single quotes used for strings which do not expand variables - certain variables marked as read-only - unused global 'kernel_check' variable removed - 'resourcesDir' renamed with snake-case format (keep variable naming scheme the same) - 'install' function's 'kernel_check' variable renamed to 'kernel_version' (makes more sense) - comments added
- duplicate code pattern reduced to array and for-loop
- version checks will only occur for installs, reinstalls, and uninstalls - 'get_displaylink_driver_version' and 'get_latest_displaylink_driver_version' functions introduced to handle DisplayLink driver version checking - 'clean_up' function updated with parameters and error handling - 'download' function refactored - 'install' function refactored - whitespaces removed
- 'kernel' variable renamed to 'kernel_release' - duplicate "uname -r" statements refactored - repeated directory paths moved into variables
- check added for potentially missing displaylink-installer.sh script
- system init daemon name retrieved once, since this value does not change - 'get_init_system' function renamed to 'get_system_init_daemon' - 'init_system' variable(s) replaced with global 'system_init_daemon' variable
- '--force' or '-f' parameter/flag added to allow users to skip all questions and automatically accept license agreements - help menu updated - script parameter parsing updated - debug, install, and download functions updated
xirixiz
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.