Files
packages/anda/system/ipu6-camera-hal/ipu6-driver-select.sh
T
Raboneko fab6a6501c fix(ipu6-camera-hal): Update patches, update build, add update script because apparently I forgot to do that (#4248) (#4432)
* 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>
2025-04-26 01:07:42 +08:00

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