mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-17 17:10:37 +00:00
aafe2ed488
* Update ipu6-camera-hal.spec Signed-off-by: Gilver <rockgrub@disroot.org> * Create update.rhai Signed-off-by: Gilver <rockgrub@disroot.org> * Bump commit? Signed-off-by: Gilver <rockgrub@disroot.org> * Nightly for date function Signed-off-by: Gilver <rockgrub@disroot.org> * Cursed Signed-off-by: Gilver <rockgrub@disroot.org> * Update ipu6-camera-hal.spec Signed-off-by: Gilver <rockgrub@disroot.org> * fix: Install and build * fix: Ifcond typo * Add myself as packager I guess * fix: Whoops * I am becoming the Joker Signed-off-by: Gilver <rockgrub@disroot.org> * Not taking anymore chances this is so annoying Signed-off-by: Gilver <rockgrub@disroot.org> * fix: Drop old lib file Signed-off-by: Gilver <rockgrub@disroot.org> * fix: Finally fully drop hal_adapter (thank God) Signed-off-by: Gilver <rockgrub@disroot.org> --------- Signed-off-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
|