From 6539dfe0df5c19e8acb8fe251b46098a25719cbc Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Thu, 3 Jan 2013 16:16:25 +0100 Subject: 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. --- src/netctl-auto | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/netctl-auto') diff --git a/src/netctl-auto b/src/netctl-auto index 1264469..a799b4b 100755 --- a/src/netctl-auto +++ b/src/netctl-auto @@ -35,16 +35,16 @@ case $STARTSTOP in list_profiles | while read -r profile; do report_debug "Examining profile '$profile'" ( - source "$PROFILE_DIR/$profile" - is_yes "${ExcludeAuto:-no}" && exit 1 - : ${Security:=none} - [[ $Interface != "$INTERFACE" ]] && exit 1 - [[ $Connection != "wireless" ]] && exit 1 - # Exclude wpa-config, the wpa_conf is 'complete' and doesn't fit in this scheme - [[ $Security == "wpa-config" ]] && exit 1 + source "$PROFILE_DIR/$profile" + [[ $Interface == "$INTERFACE" ]] || continue + is_yes "${ExcludeAuto:-no}" && exit 1 + [[ $Connection != "wireless" ]] && exit 1 + : ${Security:=none} + # Exclude wpa-config, the wpa_conf is 'complete' and doesn't fit in this scheme + [[ $Security == "wpa-config" ]] && exit 1 - printf "%s\n" "network={" "$(wpa_make_config_block)" "id_str=\"$profile\"" "}" >> "$WPA_CONF" - report_notice "Included profile '$profile'" + printf "%s\n" "network={" "$(wpa_make_config_block)" "id_str=\"$profile\"" "}" >> "$WPA_CONF" + report_notice "Included profile '$profile'" ) done @@ -58,7 +58,7 @@ case $STARTSTOP in wpa_stop "$INTERFACE" fi exit 1 - ;; + ;; stop) if [[ -e $PROFILE_FILE ]]; then "$SUBR_DIR/network" stop "$(< "$PROFILE_FILE")" && rm -f "$PROFILE_FILE" @@ -71,7 +71,7 @@ case $STARTSTOP in [[ $RFKill ]] && disable_rf "$INTERFACE" "$RFKill" fi timeout_wait 1 '[[ ! -f "$PIDFILE" ]]' || kill "$(< "$PIDFILE")" - ;; + ;; esac -- cgit v1.2.3-24-g4f1b