diff -Nru upboard-extras-0.1/debian/changelog upboard-extras-0.1/debian/changelog --- upboard-extras-0.1/debian/changelog 2019-03-05 15:35:08.000000000 +0000 +++ upboard-extras-0.1/debian/changelog 2021-08-03 04:00:00.000000000 +0000 @@ -1,3 +1,10 @@ +upboard-extras (0.1-3) focal; urgency=medium + + * Update package for Ubuntu 20.04 bionic version. + * Fix the error udev rules settings + + -- AAEON Tue, 03 Aug 2021 12:00:00 +0800 + upboard-extras (0.1-2) bionic; urgency=medium * Update package for Ubuntu 18.04 bionic version. diff -Nru upboard-extras-0.1/debian/source/format upboard-extras-0.1/debian/source/format --- upboard-extras-0.1/debian/source/format 2017-10-27 11:41:56.000000000 +0000 +++ upboard-extras-0.1/debian/source/format 2021-08-03 04:00:00.000000000 +0000 @@ -1 +1 @@ -3.0 (quilt) +3.0 (native) diff -Nru upboard-extras-0.1/lib/udev/rules.d/99-gpio.rules upboard-extras-0.1/lib/udev/rules.d/99-gpio.rules --- upboard-extras-0.1/lib/udev/rules.d/99-gpio.rules 2017-10-27 07:42:35.000000000 +0000 +++ upboard-extras-0.1/lib/udev/rules.d/99-gpio.rules 2021-08-03 04:00:00.000000000 +0000 @@ -1,5 +1,6 @@ # rules to permit access to hat peripheral from userspace SUBSYSTEM=="gpio", KERNEL=="gpio*", GROUP:="gpio" MODE:="0660" -SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'" -SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'" +SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM+="/bin/sh -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'" +SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM+="/bin/sh -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'" +SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM+="/bin/sh -c 'chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'" diff -Nru upboard-extras-0.1/lib/udev/rules.d/99-leds.rules upboard-extras-0.1/lib/udev/rules.d/99-leds.rules --- upboard-extras-0.1/lib/udev/rules.d/99-leds.rules 2017-10-25 11:26:10.000000000 +0000 +++ upboard-extras-0.1/lib/udev/rules.d/99-leds.rules 2021-08-03 04:00:00.000000000 +0000 @@ -1 +1,2 @@ SUBSYSTEM=="leds", KERNEL=="upboard:*", ACTION=="add|change", RUN+="/usr/bin/find /sys$devpath -type f -exec /bin/chmod g+u {} + -exec /bin/chown :leds {} +" +SUBSYSTEM=="leds", KERNEL=="led:*", ACTION=="add|change", RUN+="/usr/bin/find /sys$devpath -type f -exec /bin/chmod g+u {} + -exec /bin/chown :leds {} +"