diff options
author | Mathias Kresin <dev@kresin.me> | 2018-08-11 10:48:08 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-12-18 11:01:56 +0100 |
commit | 54278dfa69380cb84dce12438fd7057ca0634d85 (patch) | |
tree | eb7768e02b5b95f2ae94cd11622e80fee9df6676 /package/base-files/files/lib/functions/system.sh | |
parent | a2b2a9c55fd9a4fa7e211dae35d3951cdcc2bafc (diff) | |
download | upstream-54278dfa69380cb84dce12438fd7057ca0634d85.tar.gz upstream-54278dfa69380cb84dce12438fd7057ca0634d85.tar.bz2 upstream-54278dfa69380cb84dce12438fd7057ca0634d85.zip |
base-files: use consistent coding style
Add the opening bracket right after the function name, to do it the
same way for all functions in this file.
Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from ec28d2797c1bff4a3a97e54fee648cc56185839a)
Diffstat (limited to 'package/base-files/files/lib/functions/system.sh')
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh index d4402c3a14..e178f26f39 100644 --- a/package/base-files/files/lib/functions/system.sh +++ b/package/base-files/files/lib/functions/system.sh @@ -20,8 +20,7 @@ find_mtd_chardev() { echo "${INDEX:+$PREFIX$INDEX}" } -mtd_get_mac_ascii() -{ +mtd_get_mac_ascii() { local mtdname="$1" local key="$2" local part @@ -87,22 +86,19 @@ macaddr_add() { echo $oui:$nic } -macaddr_setbit_la() -{ +macaddr_setbit_la() { local mac=$1 printf "%02x:%s" $((0x${mac%%:*} | 0x02)) ${mac#*:} } -macaddr_2bin() -{ +macaddr_2bin() { local mac=$1 echo -ne \\x${mac//:/\\x} } -macaddr_canonicalize() -{ +macaddr_canonicalize() { local mac="$1" local canon="" |