forked from stefanpartheym/archlinux-ipu6-webcam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sh
executable file
·37 lines (29 loc) · 1.16 KB
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
# Configure package manager here if necessary:
if [[ -x "$(command -v yay)" ]]; then
PKGMAN="yay -Rsn --noconfirm"
elif [[ -x "$(command -v paru)" ]]; then
PKGMAN="paru -Rsn --noconfirm"
else
echo "ERROR: Couldn't find a package manager, please install either yay or paru"
exit 1
fi
# The package suffix used to install the patched packages to not conflict with
# their AUR counter part:
PKGSUFFIX=fix
sudo systemctl stop v4l2-relayd.service
sudo systemctl disable v4l2-relayd.service
# Not needed anymore due to being built and installed together with intel-ipu6-dkms
# eval "${PKGMAN} intel-ivsc-driver-dkms-git"
# Not needed because it is uninstalled as a dependency of the previous package:
#$PKGMAN intel-ivsc-firmware
eval "${PKGMAN} icamerasrc-git-${PKGSUFFIX}"
eval "${PKGMAN} intel-ipu6ep-camera-hal-git-${PKGSUFFIX}"
eval "${PKGMAN} intel-ipu6ep-camera-bin"
eval "${PKGMAN} intel-ipu6-dkms-git-${PKGSUFFIX}"
eval "${PKGMAN} v4l2-relayd"
eval "${PKGMAN} v4l2loopback-dkms-git-${PKGSUFFIX}"
eval "${PKGMAN} gst-plugin-pipewire"
if [[ -d /etc/systemd/system/v4l2-relayd.service.d ]]; then
sudo rm -rf /etc/systemd/system/v4l2-relayd.service.d/
fi