6

I'm wondering if someone knows a way to manage USB serial port names in OSX? For example, whenever I connect a specific device serial number I always want it's serial /dev/device1

I know in linux you can do this by /etc/udev/rules.d/49-persistent-usb.rules and adding a device rule like SUBSYSTEM=="tty", ATTRS{serial}=="1234567", SYMLINK+="device1"

What is the Mac equivalent? Thanks in advance.

...maybe this is as easy as just a normal symbolic link for /dev/tty.usb > /dev/device1

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Michael
  • 1,577
  • 1
  • 18
  • 33
  • As of OSX 10.11 El Capitan, symbolic links in `/dev/` fall under SIP and can't be easily done. https://support.apple.com/en-us/HT204899 – Dave X Apr 07 '22 at 20:26

1 Answers1

2

its as easy as:

$sudo ln -sf /dev/oldname /dev/newname

sebastian s.
  • 160
  • 4
  • 1
    In Yosemite, these links are getting deleted on reboot. Curious to know if anyone knows if something has changed since the OS X 10.10 release? – zen Apr 21 '15 at 22:03
  • 2
    FYI: this doesn't work in High Sierra ("Operation not permitted") – Zargony Aug 30 '18 at 08:32
  • The "Operation not permitted" is from System Integrity Protection https://support.apple.com/en-us/HT204899 – Dave X Apr 07 '22 at 20:02