diff options
author | Luka Perkov <luka@openwrt.org> | 2013-12-09 11:30:14 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-12-09 11:30:14 +0000 |
commit | 3ceb6b3274d75fb5dc05b9eb42f2a98ee445f122 (patch) | |
tree | 30f8751c74750a210d9321522993e8fa17ffcd1c /package/base-files/files/lib/functions/network.sh | |
parent | 18dd10190370853c3efc10b33711313a3ecb9a09 (diff) | |
download | mtk-20170518-3ceb6b3274d75fb5dc05b9eb42f2a98ee445f122.zip mtk-20170518-3ceb6b3274d75fb5dc05b9eb42f2a98ee445f122.tar.gz mtk-20170518-3ceb6b3274d75fb5dc05b9eb42f2a98ee445f122.tar.bz2 |
base-files: fix whitespaces
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39006
Diffstat (limited to 'package/base-files/files/lib/functions/network.sh')
-rw-r--r-- | package/base-files/files/lib/functions/network.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/package/base-files/files/lib/functions/network.sh b/package/base-files/files/lib/functions/network.sh index ead69aa..0ff11c3 100644 --- a/package/base-files/files/lib/functions/network.sh +++ b/package/base-files/files/lib/functions/network.sh @@ -222,7 +222,7 @@ __network_ipaddr() # determine first IPv4 address of given logical interface # 1: destination variable # 2: interface -network_get_ipaddr() { __network_ipaddr "$1" "$2" "address4" "%%/*" 0; } +network_get_ipaddr() { __network_ipaddr "$1" "$2" "address4" "%%/*" 0; } # determine first IPv6 address of given logical interface # 1: destination variable @@ -232,7 +232,7 @@ network_get_ipaddr6() { __network_ipaddr "$1" "$2" "address6" "%%/*" 0; } # determine first IPv4 subnet of given logical interface # 1: destination variable # 2: interface -network_get_subnet() { __network_ipaddr "$1" "$2" "address4" "%% *" 0; } +network_get_subnet() { __network_ipaddr "$1" "$2" "address4" "%% *" 0; } # determine first IPv6 subnet of given logical interface # 1: destination variable @@ -247,7 +247,7 @@ network_get_prefix6() { __network_ipaddr "$1" "$2" "prefix6" "%% *" 0; } # determine all IPv4 addresses of given logical interface # 1: destination variable # 2: interface -network_get_ipaddrs() { __network_ipaddr "$1" "$2" "address4" "%%/*" 1; } +network_get_ipaddrs() { __network_ipaddr "$1" "$2" "address4" "%%/*" 1; } # determine all IPv6 addresses of given logical interface # 1: destination variable @@ -257,7 +257,7 @@ network_get_ipaddrs6() { __network_ipaddr "$1" "$2" "address6" "%%/*" 1; } # determine all IPv4 subnets of given logical interface # 1: destination variable # 2: interface -network_get_subnets() { __network_ipaddr "$1" "$2" "address4" "" 1; } +network_get_subnets() { __network_ipaddr "$1" "$2" "address4" "" 1; } # determine all IPv6 subnets of given logical interface # 1: destination variable @@ -292,9 +292,9 @@ __network_gateway() # 1: destination variable # 2: interface # 3: consider inactive gateway if "true" (optional) -network_get_gateway() { __network_gateway "$1" "$2" 4 "${3:-0}"; } +network_get_gateway() { __network_gateway "$1" "$2" 4 "${3:-0}"; } -# determine IPv6 gateway of given logical interface +# determine IPv6 gateway of given logical interface # 1: destination variable # 2: interface # 3: consider inactive gateway if "true" (optional) @@ -354,7 +354,7 @@ __network_wan() # find the logical interface which holds the current IPv4 default route # 1: destination variable # 2: consider inactive default routes if "true" (optional) -network_find_wan() { __network_wan "$1" 4 "${2:-0}"; } +network_find_wan() { __network_wan "$1" 4 "${2:-0}"; } # find the logical interface which holds the current IPv6 default route # 1: destination variable @@ -384,12 +384,12 @@ network_is_up() # determine the layer 3 linux network device of the given logical interface # 1: destination variable # 2: interface -network_get_device() { __network_device "$1" "$2" l3_device; } +network_get_device() { __network_device "$1" "$2" l3_device; } # determine the layer 2 linux network device of the given logical interface # 1: destination variable # 2: interface -network_get_physdev() { __network_device "$1" "$2" device; } +network_get_physdev() { __network_device "$1" "$2" device; } __network_defer() |