summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorEric Luehrsen <ericluehrsen@hotmail.com>2016-12-22 13:24:12 -0500
committerHans Dedecker <dedeckeh@gmail.com>2017-01-05 22:51:23 +0100
commit06e26363d89788b536e5f2317ec19288c4f6b805 (patch)
tree6593c20bb520685150d2f8e2f5cd74450ae0c449 /package
parent1fef80f29cf6bdfcb6cdbd913b9147797b8bc218 (diff)
downloadmtk-20170518-06e26363d89788b536e5f2317ec19288c4f6b805.zip
mtk-20170518-06e26363d89788b536e5f2317ec19288c4f6b805.tar.gz
mtk-20170518-06e26363d89788b536e5f2317ec19288c4f6b805.tar.bz2
dnsmasq: clean up white space in dnsmasq.init
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init32
1 files changed, 16 insertions, 16 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 45fc29e..46607df 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -23,22 +23,22 @@ xappend() {
}
hex_to_hostid() {
- local var="$1"
- local hex="${2#0x}" # strip optional "0x" prefix
-
- if [ -n "${hex//[0-9a-fA-F]/}" ]; then
- # is invalid hex literal
- return 1
- fi
-
- # convert into host id
- export "$var=$(
- printf "%0x:%0x" \
- $(((0x$hex >> 16) % 65536)) \
- $(( 0x$hex % 65536))
- )"
-
- return 0
+ local var="$1"
+ local hex="${2#0x}" # strip optional "0x" prefix
+
+ if [ -n "${hex//[0-9a-fA-F]/}" ]; then
+ # is invalid hex literal
+ return 1
+ fi
+
+ # convert into host id
+ export "$var=$(
+ printf "%0x:%0x" \
+ $(((0x$hex >> 16) % 65536)) \
+ $(( 0x$hex % 65536))
+ )"
+
+ return 0
}
dhcp_calc() {