Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing serial port names in Mac OSX with symlinks

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

like image 283
Michael Avatar asked Nov 11 '22 14:11

Michael


1 Answers

its as easy as:

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

like image 134
sebastian s. Avatar answered Nov 15 '22 12:11

sebastian s.