bloguetronica / cp2130-conf

CP2130 Configurator (cp2130-conf) is an application that can be used to configure CP2130 devices, including VID, PID, as well as other descriptors. Most importantly, the application allows you to configure pin functions and states.
GNU General Public License v3.0
1 stars 1 forks source link

Incompatibilities with Devuan and other systemd-free distributions #30

Closed samuelfmlourenco closed 1 year ago

samuelfmlourenco commented 1 year ago

The "install-rules.sh" and "uninstall-rules.sh" scripts are incompatible with Devuan and other systemd-free distributions. This issue also affects the maintainer scripts included in all versions of the Debian package, making the process of installing the affected debian packages under Devuan problematic.

The fix is very simple, though. For instance, applied to "install-rules.sh":

#!/bin/sh

echo Applying rules...
cat > /etc/udev/rules.d/70-slab-generic.rules << EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="10c4", MODE="0666"
EOF
services=$(service --status-all)
if echo $services | grep -q eudev; then
    service eudev restart
elif echo $services | grep -q udev; then
    service udev restart
fi
echo Done!
samuelfmlourenco commented 1 year ago

Fixed in version 1.5.