#!/bin/bash -e

if [ ! -f /lib/udev/rules.d/60-gameglass-input.rules ]; then
    echo 'KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"' >> /lib/udev/rules.d/60-gameglass-input.rules
    udevadm control --reload-rules || true
    udevadm trigger --action=change --sysname-match=uinput || true
fi

