Skip to content

Commit

Permalink
Add support for release 5.5
Browse files Browse the repository at this point in the history
Add support for release 5.5
  • Loading branch information
Barabazs authored Mar 12, 2022
2 parents bf58b81 + f1bf83a commit b79e818
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
8 changes: 4 additions & 4 deletions displaylink-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IFS=$'\n\t'

# Latest regular release only support kernel version <= 5.13
kernel_check="$(uname -r | egrep -o '[0-9]+\.[0-9]+')"
max_kernel_version_supported="5.13"
max_kernel_version_supported="5.16"

function ver2int {
echo "$@" | awk -F "." '{ printf("%03d%03d%03d\n", $1,$2,$3); }';
Expand Down Expand Up @@ -461,9 +461,9 @@ separator
echo -e "\nPreparing for install\n"
test -d $driver_dir && /bin/rm -Rf $driver_dir
unzip -d $driver_dir DisplayLink_Ubuntu_${version}.zip
chmod +x $driver_dir/displaylink-driver-${version}-[0-9]*.run
./$driver_dir/displaylink-driver-${version}-[0-9]*.run --keep --noexec
mv displaylink-driver-${version}-[0-9]*/ $driver_dir/displaylink-driver-${version}
chmod +x $driver_dir/displaylink-driver-${version}.*[0-9]*-[0-9]*.run
./$driver_dir/displaylink-driver-${version}.*[0-9]*-[0-9]*.run --keep --noexec
mv displaylink-driver-${version}.*[0-9]*-[0-9]*/ $driver_dir/displaylink-driver-${version}

# get sysinitdaemon
sysinitdaemon=$(sysinitdaemon_get)
Expand Down
34 changes: 19 additions & 15 deletions resources/displaylink-installer.patch
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
--- /opt/displaylink/displaylink-installer.sh
+++ /opt/displaylink/displaylink-installer.sh
@@ -457,11 +457,11 @@
echo "http://support.displaylink.com/knowledgebase/topics/103927-troubleshooting-ubuntu"
@@ -502,13 +502,13 @@
printf '\n%s\n%s\n' "Please read the FAQ" \
"http://support.displaylink.com/knowledgebase/topics/103927-troubleshooting-ubuntu"

echo -e "\nInstallation complete!"
- echo -e "\nPlease reboot your computer if intending to use Xorg."
- $XORG_RUNNING || exit 0
- read -rp 'Xorg is running. Do you want to reboot now? (Y/n)' CHOICE
- [[ ${CHOICE:-Y} =~ ^[Nn]$ ]] && exit 0
- reboot
+ #echo -e "\nPlease reboot your computer if intending to use Xorg."
+ #$XORG_RUNNING || exit 0
+ #read -rp 'Xorg is running. Do you want to reboot now? (Y/n)' CHOICE
+ #[[ ${CHOICE:-Y} =~ ^[Nn]$ ]] && exit 0
+ #reboot
- printf '\n%s\n\n%s\n' "Installation complete!" \
- "Please reboot your computer if you're intending to use Xorg."
-
- "$NOREBOOT" && exit 0
-
- xorg_running || exit 0
- prompt_yes_no "Xorg is running. Do you want to reboot now?" && reboot
+# printf '\n%s\n\n%s\n' "Installation complete!" \
+# "Please reboot your computer if you're intending to use Xorg."
+#
+# "$NOREBOOT" && exit 0
+#
+# xorg_running || exit 0
+# prompt_yes_no "Xorg is running. Do you want to reboot now?" && reboot
exit 0
}

uninstall()

0 comments on commit b79e818

Please sign in to comment.