aboutsummaryrefslogtreecommitdiffstats
path: root/setup-interfaces.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:02:43 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:11:19 +0100
commitcb474e20d6ff923a8f338f26b93234411065ffc0 (patch)
tree4e3c16c18adcc9fd7b3b58f45064ec752f47485e /setup-interfaces.in
parent9f65b05ba2b0b291f9973228a5c4395508b95b16 (diff)
downloadalpine-conf-cb474e20d6ff923a8f338f26b93234411065ffc0.tar.bz2
alpine-conf-cb474e20d6ff923a8f338f26b93234411065ffc0.tar.xz
fix mixed tabs & spaces and surplus empty lines at EOF
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index b4121d5..a1ab283 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -208,7 +208,7 @@ config_iface() {
raw_device=$(cat $iface.raw_device)
echo "raw_device=\"$raw_device\"" >> $conf
fi
- if is_wifi $iface; then
+ if is_wifi $iface; then
apk add --quiet --no-progress wireless-tools wpa_supplicant || prompt_for_interfaces
echo "Available wireless networks (scanning):"
if find_essids $iface; then
@@ -223,7 +223,7 @@ config_iface() {
echo -e "\nNo available wireless networks\n"
prompt_for_interfaces
fi
- fi
+ fi
# use ipcalc to validate the address. we do accept /mask
# we are no interested in the result, only error code, so
# we send result to /dev/null
@@ -407,7 +407,7 @@ config_vlan() {
}
usage() {
- cat <<__EOF__
+ cat <<__EOF__
usage: setup-interfaces [-bhi]
Setup network interfaces
@@ -417,7 +417,7 @@ options:
-h Show this help
-i Read new contents of ${ROOT}etc/network/interfaces from stdin
__EOF__
- exit 1
+ exit 1
}
iface_help() {
@@ -553,12 +553,12 @@ ask_bridge=
is_xen_dom0 && ask_bridge=1
while getopts "bhip:" opt; do
- case $opt in
+ case $opt in
b) ask_bridge=1;;
- h) usage;;
+ h) usage;;
i) STDINPUT=1;;
p) ROOT=$OPTARG;;
- esac
+ esac
done
mkdir -p $ROOT/etc/network