REM Create u2f fix for snaped firefox on ubuntu REM REM date: 14.09.2022 REM author: LupusE REM assuming the vendor ID always be the same, but the product ID can change over time REM lsusb, awk, cut should be available on any ubuntu desktop ALT F2 DELAY 1500 STRING gnome-terminal ENTER DELAY 1500 STRING echo "Should I create? You have 10 seconds to enter the sudo Password" ENTER STRING sudo su ENTER DELAY 10000 STRING UDEVFILE="/etc/udev/rules.d/70-snap.flipper.rules" ENTER STRING echo "# u2f-devices" > $UDEVFILE ENTER STRING echo "# STMicroelectronics U2F Token" >> $UDEVFILE ENTER STRING echo 'KERNEL=="hidraw*", ATTRS{idVendor}=="$0483", ATTRS{idProduct}=="5741", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl", TAG+="snap_firefox_firefox"' >> $UDEVFILE ENTER