Changeset 1735

Show
Ignore:
Timestamp:
26/08/10 10:08:35 (3 years ago)
Author:
matthijs
Message:

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 dashboar, luci.fon.spot is not
included yet. When it is used from the dashboar, luci.fon.spot is not included
yet. When it is used from the dashboar, luci.fon.spot is not included yet. This
change ensures it is always included and thus also works from the wizard.

Closes #894

Files:
1 modified

Legend:

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

    r1689 r1735  
    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