lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This was the easiest one I found:

io.input("/sys/class/net/eth0/address")
t = io.read("*line")

These are embedded Linux devices so the network is always eth0.

-- 
Jon Smirl
jonsmirl@gmail.com