diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-02 22:02:43 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-02 22:11:19 +0100 |
commit | cb474e20d6ff923a8f338f26b93234411065ffc0 (patch) | |
tree | 4e3c16c18adcc9fd7b3b58f45064ec752f47485e /setup-ntp.in | |
parent | 9f65b05ba2b0b291f9973228a5c4395508b95b16 (diff) | |
download | alpine-conf-cb474e20d6ff923a8f338f26b93234411065ffc0.tar.bz2 alpine-conf-cb474e20d6ff923a8f338f26b93234411065ffc0.tar.xz |
fix mixed tabs & spaces and surplus empty lines at EOF
Diffstat (limited to 'setup-ntp.in')
-rw-r--r-- | setup-ntp.in | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/setup-ntp.in b/setup-ntp.in index b544a2a..4432cbc 100644 --- a/setup-ntp.in +++ b/setup-ntp.in @@ -5,7 +5,7 @@ PREFIX= . "$PREFIX/lib/libalpine.sh" usage() { - cat <<__EOF__ + cat <<__EOF__ usage: setup-ntp [-h] [-c choice of NTP daemon] Setup NTP time synchronization @@ -14,19 +14,19 @@ options: -h Show this help -c Choice of NTP daemon: busybox openntpd chrony none __EOF__ - exit 1 + exit 1 } while getopts "hc:" opt; do - case $opt in - c) ntpchoice="$OPTARG";; + case $opt in + c) ntpchoice="$OPTARG";; h) usage;; - esac + esac done if [ -z "$ntpchoice" ]; then - echo -n "Which NTP client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony] " - default_read ntpchoice "chrony" + echo -n "Which NTP client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony] " + default_read ntpchoice "chrony" fi pkgs="$ntpchoice" @@ -53,4 +53,3 @@ esac [ -z "$pkgs" ] || apk add --quiet $pkgs rc-update add $svc default rc-service $svc start - |