Changeset 1946

Show
Ignore:
Timestamp:
04/08/11 11:14:02 (22 months ago)
Author:
matthijs
Message:

Backport r1735: Require luci.fon.spot in luci.fon.reg.getmac().

When geturl() (and thus getmac()) are used from the wizard, luci.fon.spot is
not included yet. When it is used from the dashboard, luci.fon.spot is not
included yet. This change ensures it is always included and thus also
works from the wizard.

References: #894

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.3.6/luci/libs/fon/luasrc/fon/reg.lua

    r1691 r1946  
    1414function getmac() 
    1515        luci.model.uci.cursor_state():get("registered", "fonreg", "registered", "1") 
    16         if luci.fon.spot.get_device() == "fonera20n" then 
     16        if require("luci.fon.spot").get_device() == "fonera20n" then 
    1717                mac = luci.sys.net.getmac("eth0.1", "-") 
    1818        else