mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-06 20:02:18 +00:00
fab6a6501c
* Update ipu6-camera-hal.spec
* Create update.rhai
* Bump commit?
* Nightly for date function
* Cursed
* Update ipu6-camera-hal.spec
* fix: Install and build
* fix: Ifcond typo
* Add myself as packager I guess
* fix: Whoops
* I am becoming the Joker
* Not taking anymore chances this is so annoying
* fix: Drop old lib file
* fix: Finally fully drop hal_adapter (thank God)
---------
(cherry picked from commit aafe2ed488)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
32 lines
519 B
Bash
32 lines
519 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
function show_help () {
|
|
echo "Usage: 'ipu6-driver-select [ proprietary | foss ]'"
|
|
exit 1
|
|
}
|
|
|
|
function needs_pipewire_restart () {
|
|
echo "Run 'systemctl --user restart pipewire' for the changes to take effect"
|
|
exit 0
|
|
}
|
|
|
|
if (( $# != 1 )); then
|
|
show_help
|
|
fi
|
|
|
|
case "$1" in
|
|
"foss")
|
|
systemctl disable --now v4l2-relayd.service
|
|
needs_pipewire_restart
|
|
;;
|
|
"proprietary")
|
|
systemctl enable --now v4l2-relayd.service
|
|
needs_pipewire_restart
|
|
;;
|
|
*)
|
|
show_help
|
|
;;
|
|
esac
|