DisplayLink Forum

DisplayLink Forum (https://displaylink.org/forum/index.php)
-   Linux and Open Source (https://displaylink.org/forum/forumdisplay.php?f=29)
-   -   [PATCH] [BUGFIX] Install fails on 15.04 with upstart-sysv (https://displaylink.org/forum/showthread.php?t=64019)

mickaelperrin 08-13-2015 01:02 PM

[PATCH] [BUGFIX] Install fails on 15.04 with upstart-sysv
 
Hi,

Here is a simple patch to correctly install the drivers on Ubuntu 15.04 if user continue to use upstart instead of systemd by installing the upstart-sysv package.

Except this, the driver works well. Even if I would like the ability to choose which side to display the monitor and to rotate it.

Direct download patch

Code:

---
 displaylink-installer.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/displaylink-installer.sh b/displaylink-installer.sh
index 8d2bb57..599a576 100755
--- a/displaylink-installer.sh
+++ b/displaylink-installer.sh
@@ -260,7 +260,7 @@ detect_distro()
    if which lsb_release >/dev/null; then
        local R=$(lsb_release -d -s)
        echo "Distribution discovered: $R"
-        if [ -z "${R##Ubuntu 14.*}" ]; then
+        if [ -z "${R##Ubuntu 14.*}" ] || dpkg-query -l upstart-sysv 2>/dev/null >/dev/null; then
            SYSTEMINITDAEMON=upstart
        elif [ -z "${R##Ubuntu 15.04*}" ]; then
            SYSTEMINITDAEMON=systemd
--
2.1.4

Hope it helps,

Regards,


All times are GMT. The time now is 08:34 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.