PDA

View Full Version : [PATCH] [BUGFIX] Install fails on 15.04 with upstart-sysv


mickaelperrin
08-13-2015, 01:02 PM
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 (http://bit.ly/1EoQTed)


---
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,