luci-0.9: merge r5193-r5194
This commit is contained in:
parent
ce8c292271
commit
9c07466806
2 changed files with 6 additions and 5 deletions
|
@ -30,7 +30,7 @@ validate_ifname() {
|
|||
|
||||
validate_olsrd_option() {
|
||||
local str=$1
|
||||
[ -z "$str" -o "$str" != "${str%%[! 0-9A-Za-z./:_-]*}" ] && return 1
|
||||
[ -z "$str" -o "$str" != "${str%%[! 0-9A-Za-z./|:_-]*}" ] && return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -17,11 +17,12 @@ $Id$
|
|||
--- LuCI IP calculation library.
|
||||
module( "luci.ip", package.seeall )
|
||||
|
||||
require("bit")
|
||||
require("luci.util")
|
||||
require "nixio"
|
||||
local bit = nixio.bit
|
||||
local util = require "luci.util"
|
||||
|
||||
--- Boolean; true if system is little endian
|
||||
LITTLE_ENDIAN = not luci.util.bigendian()
|
||||
LITTLE_ENDIAN = not util.bigendian()
|
||||
|
||||
--- Boolean; true if system is big endian
|
||||
BIG_ENDIAN = not LITTLE_ENDIAN
|
||||
|
@ -324,7 +325,7 @@ end
|
|||
-- @class module
|
||||
-- @cstyle instance
|
||||
-- @name luci.ip.cidr
|
||||
cidr = luci.util.class()
|
||||
cidr = util.class()
|
||||
|
||||
--- Test whether the instance is a IPv4 address.
|
||||
-- @return Boolean indicating a IPv4 address type
|
||||
|
|
Loading…
Reference in a new issue