SHARE
TWEET

displaylink-installer.patch

a guest Dec 19th, 2017 161 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- displaylink-installer.sh.bak        2017-12-18 10:48:06.769506215 -0600
  2. +++ displaylink-installer.sh    2017-12-19 08:34:26.415181984 -0600
  3. @@ -122,7 +122,7 @@
  4.  {
  5.    MODVER="$1"
  6.  
  7. -  cat > /lib/systemd/system/dlm.service <<EOF
  8. +  cat > /usr/lib/systemd/system/dlm.service <<EOF
  9.  [Unit]
  10.  Description=DisplayLink Manager Service
  11.  After=display-manager.service
  12. @@ -137,7 +137,7 @@
  13.  
  14.  EOF
  15.  
  16. -  chmod 0644 /lib/systemd/system/dlm.service
  17. +  chmod 0644 /usr/lib/systemd/system/dlm.service
  18.  }
  19.  
  20.  remove_upstart_script()
  21. @@ -148,7 +148,7 @@
  22.  remove_systemd_service()
  23.  {
  24.    systemctl disable dlm.service
  25. -  rm -f /lib/systemd/system/dlm.service
  26. +  rm -f /usr/lib/systemd/system/dlm.service
  27.  }
  28.  
  29.  add_pm_script()
  30. @@ -219,14 +219,14 @@
  31.      ln -sf $COREDIR/suspend.sh /etc/pm/sleep.d/displaylink.sh
  32.    elif [ "$1" = "systemd" ]
  33.    then
  34. -    ln -sf $COREDIR/suspend.sh /lib/systemd/system-sleep/displaylink.sh
  35. +    ln -sf $COREDIR/suspend.sh /usr/lib/systemd/system-sleep/displaylink.sh
  36.    fi
  37.  }
  38.  
  39.  remove_pm_scripts()
  40.  {
  41.    rm -f /etc/pm/sleep.d/displaylink.sh
  42. -  rm -f /lib/systemd/system-sleep/displaylink.sh
  43. +  rm -f /usr/lib/systemd/system-sleep/displaylink.sh
  44.  }
  45.  
  46.  cleanup()
  47. @@ -265,7 +265,7 @@
  48.  
  49.    is_64_bit && ARCH="x64" || ARCH="x86"
  50.    local UBULONGREL=`lsb_release -r`
  51. -  [[ $UBULONGREL =~ "14.04" ]] && UBUREL="ubuntu-1404" || UBUREL="ubuntu-1604"
  52. +  [[ $UBULONGREL =~ "42.3" ]] && UBUREL="ubuntu-1404" || UBUREL="ubuntu-1604"
  53.    local DLM="$ARCH-$UBUREL/DisplayLinkManager"
  54.    echo "Installing $DLM"
  55.    [ -x $DLM ] && mv -f $DLM $COREDIR
  56. @@ -284,7 +284,7 @@
  57.    chmod 0755 $COREDIR/libusb*.so*
  58.  
  59.    echo "Installing firmware packages"
  60. -  mv -f *.spkg $COREDIR
  61. +  cp -f *.spkg $COREDIR
  62.    chmod 0644 $COREDIR/*.spkg
  63.  
  64.    echo "Installing licence file"
  65. @@ -373,7 +373,7 @@
  66.    version_lt "$KVER" "$KVER_MIN" && missing_requirement "Kernel version $KVER is too old. At least $KVER_MIN is required"
  67.  
  68.    # Linux headers
  69. -  [ ! -f "/lib/modules/$KVER/build/Kconfig" ] && missing_requirement "Linux headers for running kernel, $KVER"
  70. +  [ ! -e "/lib/modules/$KVER/build" ] && missing_requirement "Linux headers for running kernel, $KVER"
  71.  }
  72.  
  73.  usage()
  74. @@ -409,9 +409,10 @@
  75.    if which lsb_release >/dev/null; then
  76.      local R=$(lsb_release -d -s)
  77.      echo "Distribution discovered: $R"
  78. -    [ -z "${R##Ubuntu 14.*}" ] && return
  79. -    [ -z "${R##Ubuntu 15.*}" ] && return
  80. -    [ -z "${R##Ubuntu 16.04*}" ] && return
  81. +    #[ -z "${R##Ubuntu 14.*}" ] && return
  82. +    #[ -z "${R##Ubuntu 15.*}" ] && return
  83. +    #[ -z "${R##Ubuntu 16.04*}" ] && return
  84. +    [ -z "${R##openSUSE Leap 42.3}" ] && return
  85.    else
  86.      echo "WARNING: This is not an officially supported distribution." >&2
  87.      echo "Please use DisplayLink Forum for getting help if you find issues." >&2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top