summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:28:23 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-02 23:12:27 +0100
commit281cbbd6cd8ecfc3d5c1a365ae01f2e49ad25f24 (patch)
tree9bf3e352b97c7d3742c94b31d7d2e6886dc001b1 /setup-alpine.in
parent07c02f672a5708e4dcd9ed9aa3935840916f4c6e (diff)
downloadalpine-conf-281cbbd6cd8ecfc3d5c1a365ae01f2e49ad25f24.zip
indent heredocs and replace echos with heredoc where appropriate
Diffstat (limited to 'setup-alpine.in')
-rw-r--r--setup-alpine.in88
1 files changed, 44 insertions, 44 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index efd6d4a..8b1d947 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -21,18 +21,18 @@ is_qemu() {
}
usage() {
- cat <<__EOF__
-usage: setup-alpine [-ahq] [-c FILE | -f FILE]
-
-Setup Alpine Linux
-
-options:
- -a Create Alpine Linux overlay file
- -c Create answer file (do not install anything)
- -f Answer file to use installation
- -h Show this help
- -q Quick mode. Ask fewer questions.
-__EOF__
+ cat <<-__EOF__
+ usage: setup-alpine [-ahq] [-c FILE | -f FILE]
+
+ Setup Alpine Linux
+
+ options:
+ -a Create Alpine Linux overlay file
+ -c Create answer file (do not install anything)
+ -f Answer file to use installation
+ -h Show this help
+ -q Quick mode. Ask fewer questions.
+ __EOF__
exit 1
}
@@ -63,51 +63,51 @@ fi
if [ "$CREATEANSWERFILE" != "" ]; then
touch "$CREATEANSWERFILE" || echo "Cannot touch file $CREATEANSWERFILE"
- cat <<__EOF__ > "$CREATEANSWERFILE"
-# Example answer file for setup-alpine script
-# If you don't want to use a certain option, then comment it out
+ cat > "$CREATEANSWERFILE" <<-__EOF__
+ # Example answer file for setup-alpine script
+ # If you don't want to use a certain option, then comment it out
-# Use US layout with US variant
-KEYMAPOPTS="us us"
+ # Use US layout with US variant
+ KEYMAPOPTS="us us"
-# Set hostname to alpine-test
-HOSTNAMEOPTS="-n alpine-test"
+ # Set hostname to alpine-test
+ HOSTNAMEOPTS="-n alpine-test"
-# Contents of /etc/network/interfaces
-INTERFACESOPTS="auto lo
-iface lo inet loopback
+ # Contents of /etc/network/interfaces
+ INTERFACESOPTS="auto lo
+ iface lo inet loopback
-auto eth0
-iface eth0 inet dhcp
- hostname alpine-test
-"
+ auto eth0
+ iface eth0 inet dhcp
+ hostname alpine-test
+ "
-# Search domain of example.com, Google public nameserver
-DNSOPTS="-d example.com 8.8.8.8"
+ # Search domain of example.com, Google public nameserver
+ DNSOPTS="-d example.com 8.8.8.8"
-# Set timezone to UTC
-TIMEZONEOPTS="-z UTC"
+ # Set timezone to UTC
+ TIMEZONEOPTS="-z UTC"
-# set http/ftp proxy
-PROXYOPTS="http://webproxy:8080"
+ # set http/ftp proxy
+ PROXYOPTS="http://webproxy:8080"
-# Add a random mirror
-APKREPOSOPTS="-r"
+ # Add a random mirror
+ APKREPOSOPTS="-r"
-# Install Openssh
-SSHDOPTS="-c openssh"
+ # Install Openssh
+ SSHDOPTS="-c openssh"
-# Use openntpd
-NTPOPTS="-c openntpd"
+ # Use openntpd
+ NTPOPTS="-c openntpd"
-# Use /dev/sda as a data disk
-DISKOPTS="-m data /dev/sda"
+ # Use /dev/sda as a data disk
+ DISKOPTS="-m data /dev/sda"
-# Setup in /media/sdb1
-LBUOPTS="/media/sdb1"
-APKCACHEOPTS="/media/sdb1/cache"
+ # Setup in /media/sdb1
+ LBUOPTS="/media/sdb1"
+ APKCACHEOPTS="/media/sdb1/cache"
-__EOF__
+ __EOF__
echo "Answer file $CREATEANSWERFILE has been created. Please add or remove options as desired in that file"
exit 0
fi