aliaser icon indicating copy to clipboard operation
aliaser copied to clipboard

Not compatible with Ubuntu

Open rohanc opened this issue 8 years ago • 0 comments

As hinted in your blog, the ifconfig output is different across different Linux distributions. I found that aliaser didn't work for me on Ubuntu 16.04.2 LTS because the regex it uses to find the MAC address won't work on that platform.

To fix the problem, I put this line in the mac-grab function instead: MAC_ADDR=$(cat /sys/class/net/eth0/address)

As suggested by Dave on stackoverflow, using the sysfs way is perhaps the cleanest. I imagine this will work on both Redhat and Debian now.

rohanc avatar Oct 16 '17 01:10 rohanc