Add kmod-usb-serial-ftdi as package dependency for FTDI-based 3D printers; fix MAC address lookup; fix dhcp configuration when switching to AP mode; rename api functions in network module; minor fixes and changes.

This commit is contained in:
Wouter R
2013-07-25 01:11:46 +02:00
parent d4b9c39d60
commit 781c3f9ff1
7 changed files with 59 additions and 42 deletions
+5 -2
View File
@@ -17,8 +17,11 @@ end
function M.test_getMacAddress()
local reportedMac = wlanconfig.getMacAddress()
local output = captureCommandOutput('ifconfig wlan0')
local actualMac = output:match('HWaddr (%w%w:%w%w:%w%w:%w%w:%w%w:%w%w)'):gsub(':', ''):upper()
local f = io.open('/sys/class/net/wlan0/address')
assert(f)
local output = f:read('*all')
f:close()
local actualMac = output:match('(%w%w:%w%w:%w%w:%w%w:%w%w:%w%w)'):gsub(':', ''):upper()
assert(reportedMac == actualMac)
end