base-files: use consistent coding style
authorMathias Kresin <dev@kresin.me>
Sat, 11 Aug 2018 08:48:08 +0000 (10:48 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 10:01:56 +0000 (11:01 +0100)
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)

package/base-files/files/lib/functions/system.sh

index d4402c3a148ae1f7aede36d6bdc1c8775ec38116..e178f26f39ac00f235b9bc3706c816dd6e8001b3 100644 (file)
@@ -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=""