View Single Post
Old 08-13-2015, 01:02 PM   #1
mickaelperrin
Junior Member
 
Join Date: Aug 2015
Posts: 1
Arrow [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,
mickaelperrin is offline   Reply With Quote