diff --git a/userspace/files/99-gpio.rules b/userspace/files/99-gpio.rules index 8a6ee08..ed25b52 100644 --- a/userspace/files/99-gpio.rules +++ b/userspace/files/99-gpio.rules @@ -1 +1,2 @@ SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} \; -exec chmod 770 {} \; || true'" +SUBSYSTEM=="gpio", KERNEL=="gpiochip[0]", GROUP="gpio", MODE="660" diff --git a/userspace/usr/comma/gpio.sh b/userspace/usr/comma/gpio.sh index e119cba..b82928a 100755 --- a/userspace/usr/comma/gpio.sh +++ b/userspace/usr/comma/gpio.sh @@ -17,10 +17,6 @@ pins=( 33 # GPS_SAFEBOOT_N 32 # GPS_RST_N 52 # LTE_BOOT -21 # BMX055_ACCEL_INT -23 # BMX055_GYRO_INT -87 # BMX055_MAGN_INT -84 # LSM_INT 1264 # POWER ALERT )