Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for UOS #695

Merged
merged 7 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ Before submitting a bug report in the [issue tracker](https://github.com/AdnanHo
* Mint: 15 Olivia / 20.3 Una
* LMDE: 2 Betsy - 5 Elsie
* Kali: kali-rolling/2016.2/2017.3/2018.3/2018.4/2022.1
* Deepin: 15 - 15.4.1
* Deepin: stable - unstable
* UOS: apricot - eagle
* MX Linux: 17.1/18
* BunsenLabs: Helium
* Parrot: 4.5
Expand Down
15 changes: 5 additions & 10 deletions displaylink-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,7 @@ fi
dep_check() {
echo -e "\nChecking dependencies\n"

if [ "$lsb" == "Deepin" ];
then
deps=(unzip linux-headers-$(uname -r) dkms lsb-release linux-source-deepin x11-xserver-utils wget libdrm-dev libelf-dev git pciutils)
else
deps=(unzip linux-headers-$(uname -r) dkms lsb-release linux-source x11-xserver-utils wget libdrm-dev libelf-dev git pciutils)
fi
deps=(unzip linux-headers-$(uname -r) dkms lsb-release linux-source x11-xserver-utils wget libdrm-dev libelf-dev git pciutils)

for dep in ${deps[@]}
do
Expand Down Expand Up @@ -242,9 +237,9 @@ then
exit 1
fi
# Deepin
elif [ "$lsb" == "Deepin" ];
elif [ "$lsb" == "Deepin" ] || [ "$lsb" == "Uos" ] ;
then
if [ $codename == "unstable" ] || [ $codename == "stable" ] || [ $codename == "n/a" ];
if [ $codename == "unstable" ] || [ $codename == "stable" ] || [ $codename == "eagle" ] || [ $codename == "apricot" ] || [ $codename == "n/a" ];
then
echo -e "\nPlatform requirements satisfied, proceeding ..."
else
Expand Down Expand Up @@ -472,7 +467,7 @@ sysinitdaemon=$(sysinitdaemon_get)
sed -i "s/SYSTEMINITDAEMON=unknown/SYSTEMINITDAEMON=$sysinitdaemon/g" $driver_dir/displaylink-driver-${version}/displaylink-installer.sh

# issue: 227
if [ "$lsb" == "Debian" ] || [ "$lsb" == "Devuan" ] || [ "$lsb" == "Kali" ] || [ "$lsb" == "Deepin" ] || [ "$lsb" == "BunsenLabs" ] || [ "$lsb" == "MX" ];
if [ "$lsb" == "Debian" ] || [ "$lsb" == "Devuan" ] || [ "$lsb" == "Kali" ] || [ "$lsb" == "Deepin" ] || [ "$lsb" == "BunsenLabs" ] || [ "$lsb" == "MX" ] || [ "$lsb" == "Uos" ];
then
sed -i 's#/lib/modules/$KVER/build/Kconfig#/lib/modules/$KVER/build/scripts/kconfig/conf#g' $driver_dir/displaylink-driver-${version}/displaylink-installer.sh
ln -sf /lib/modules/$(uname -r)/build/Makefile /lib/modules/$(uname -r)/build/Kconfig
Expand Down Expand Up @@ -791,7 +786,7 @@ separator
echo -e "\nUninstalling ...\n"

# displaylink-installer uninstall
if [ "$lsb" == "Debian" ] || [ "$lsb" == "Devuan" ] || [ "$lsb" == "Kali" ] || [ "$lsb" == "Deepin" ] || [ "$lsb" == "BunsenLabs" ];
if [ "$lsb" == "Debian" ] || [ "$lsb" == "Devuan" ] || [ "$lsb" == "Kali" ] || [ "$lsb" == "Deepin" ] || [ "$lsb" == "BunsenLabs" ] || [ "$lsb" == "Uos" ];
then
if [ -f /lib/modules/$(uname -r)/build/Kconfig ]; then
rm /lib/modules/$(uname -r)/build/Kconfig
Expand Down