Skip to content

Commit

Permalink
lime-system: use function from utils to match begin of string
Browse files Browse the repository at this point in the history
  • Loading branch information
G10h4ck committed Nov 9, 2014
1 parent 6affa1f commit 7405493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lime-system/files/usr/lib/lua/lime/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function network.createVlanIface(linuxBaseIfname, vid, openwrtNameSuffix, vlanPr
--! and sanitize linuxBaseIfName because it can contain dots as well (i.e. switch ports)
local linux802adIfName = linuxBaseIfname:gsub("[^%w_]", "_")..network.protoVlanSeparator..vlanId
local ifname = linuxBaseIfname
if string.sub(linuxBaseIfname, 1, 4) == "wlan" then ifname = "@"..network.limeIfNamePrefix..linuxBaseIfname end
if utils.stringStarts(linuxBaseIfname, "wlan") then ifname = "@"..network.limeIfNamePrefix..linuxBaseIfname end

local uci = libuci:cursor()

Expand Down

0 comments on commit 7405493

Please sign in to comment.