diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2013-01-03 16:16:25 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2013-01-03 16:16:25 +0100 |
commit | 6539dfe0df5c19e8acb8fe251b46098a25719cbc (patch) | |
tree | 72a2e189ca588b4d3878db73cb7171063287d35e /src/lib/network | |
parent | fafa6603f87d68fd6b30dcfd4600cb1006e02a9e (diff) | |
download | netctl-6539dfe0df5c19e8acb8fe251b46098a25719cbc.tar.gz netctl-6539dfe0df5c19e8acb8fe251b46098a25719cbc.tar.xz |
Indentation fixes
This settles a style for 'case' statements:
The label and closing colons are indented with two spaces,
The body is indented with two more, totalling four spaces.
Diffstat (limited to 'src/lib/network')
-rwxr-xr-x | src/lib/network | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/network b/src/lib/network index 1117737..bc11da7 100755 --- a/src/lib/network +++ b/src/lib/network @@ -22,19 +22,19 @@ interface_is_up() { ## Activate an interface # $1: interface name bring_interface_up() { - local interface=$1 - ip link set dev "$interface" up &>/dev/null - timeout_wait "${TimeoutUp:-5}" 'interface_is_up "$interface"' + local interface=$1 + ip link set dev "$interface" up &>/dev/null + timeout_wait "${TimeoutUp:-5}" 'interface_is_up "$interface"' } ## Deactivate an interface # $1: interface name bring_interface_down() { - local interface=$1 - ip addr flush dev "$interface" &>/dev/null - ip link set dev "$interface" down &>/dev/null - # We reuse the up timeout (down normally is faster) - timeout_wait "${TimeoutUp:-5}" '! interface_is_up "$interface"' + local interface=$1 + ip addr flush dev "$interface" &>/dev/null + ip link set dev "$interface" down &>/dev/null + # We reuse the up timeout (down normally is faster) + timeout_wait "${TimeoutUp:-5}" '! interface_is_up "$interface"' } @@ -69,7 +69,7 @@ case $1 in exit 1 fi report_notice "Started network profile '$Profile'" - ;; + ;; stop) report_notice "Stopping network profile '$Profile'..." # JP: sandbox the eval @@ -88,7 +88,7 @@ case $1 in exit 1 fi report_notice "Stopped network profile '$Profile'" - ;; + ;; esac |