Skip to content

Commit 3911077

Browse files
committed
Use su instead of newgroup to launch a new shell with dialout permissions.
1 parent b860d2a commit 3911077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/tools/papilio/papilio_loader/ftdi_user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ echo 'SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="7bc0", GROU
1616
echo 'ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="7bc0", RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c '"'"'echo 0403 7bc0 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"'"'"' >> /etc/udev/rules.d/papilio.rules
1717
udevadm control --reload
1818
echo "You may need to log out and back in for the changes to take affect, if that does not work then reboot."
19-
newgrp dialout
19+
su $SUDO_USER

0 commit comments

Comments
 (0)