Files
OpenRGB/debian/openrgb.postinst
Chris 4a6c4f0e52 Adding test stages to Linux builds
* Build based on new OpenRGB docker image (Debian Stretch)
* Adapting AppImage build scripts to new docker image
* Changing postinstall script to avoid error

+ Adding test stage keyword
+ Adding needs keyword
+ Debian 10       Buster 32bit & 64bit
+ Debian 11       Bullseye 32bit & 64bit
+ Fedora 34       v34 64bit only
+ Ubuntu 18.04LTS Bionic 32bit & 64bit
+ Ubuntu 20.04LTS Focal 64bit only
+ Ubuntu 20.10    Groovy 64bit only
+ Mint   20.1     Ulyssa 32bit & 64bit

Amended to leave Bullseye builds in place by Adam Honse <calcprogrammer1@gmail.com>
2021-05-31 23:32:09 -05:00

19 lines
619 B
Bash

#!/bin/bash
# -e is not set should this step fail for whatever reason the installation is still valid
set -u -o pipefail
# Reload rules
if [ -f /bin/udevadm ]; then
udevadm control --reload-rules || echo "done"
udevadm trigger;
else
echo
echo "\/-------------------------------------------------------\\"
echo "\| Critical: This system does not have udev installed. \|"
echo "\| \|"
echo "\| Please install udev with: sudo apt -y install udev \|"
echo "\\-------------------------------------------------------\/"
echo
fi