summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
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