Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Update
DisplayCAL
debian.postinst
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.postinst of Package DisplayCAL
#!/bin/sh set -e # Install udev rules or hotplug scripts if [ -e "/etc/udev/rules.d" ]; then ls /dev/bus/usb/*/* > /dev/null 2>&1 && ( # USB and serial instruments using udev, where udev already creates /dev/bus/usb/00X/00X devices if [ ! -e "/etc/udev/rules.d/55-Argyll.rules" ]; then ln -s "/usr/share/dispcalGUI/usb/55-Argyll.rules" "/etc/udev/rules.d/55-Argyll.rules" fi ) || ( # USB using udev, where there are NOT /dev/bus/usb/00X/00X devices if [ ! -e "/etc/udev/rules.d/45-Argyll.rules" ]; then ln -s "/usr/share/dispcalGUI/usb/45-Argyll.rules" "/etc/udev/rules.d/45-Argyll.rules" fi ) # Reload udev rules if [ -e "/sbin/udevadm" ]; then /sbin/udevadm control --reload-rules fi else if [ -e "/etc/hotplug" ]; then # USB using hotplug and Serial using udev (older versions of Linux) if [ ! -e "/etc/hotplug/usb/Argyll" ]; then ln -s "/usr/share/dispcalGUI/usb/Argyll" "/etc/hotplug/usb/Argyll" fi if [ ! -e "/etc/hotplug/usb/Argyll.usermap" ]; then ln -s "/usr/share/dispcalGUI/usb/Argyll.usermap" "/etc/hotplug/usb/Argyll.usermap" fi fi fi #DEBHELPER# exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor