diff --git a/cdist/conf/type/__autofs/manifest b/cdist/conf/type/__autofs/manifest index 31844415..4a726c0a 100755 --- a/cdist/conf/type/__autofs/manifest +++ b/cdist/conf/type/__autofs/manifest @@ -1,6 +1,7 @@ #!/bin/sh # # 2012 Steven Armstrong (steven-cdist at armstrong.cc) +# 2012 Nico Schottelius (nico-cdist at schottelius.org) # # This file is part of cdist. # @@ -21,18 +22,13 @@ os=$(cat "$__global/explorer/os") -not_supported() { - echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2 - echo "Please contribute an implementation for it if you can." >&2 - exit 1 -} - case "$os" in - ubuntu|debian|archlinux) - __package autofs --state present - __start_on_boot autofs --state present - ;; - *) - not_supported - ;; + ubuntu|debian|archlinux) + __package autofs --state present + __start_on_boot autofs --state present + ;; + *) + echo "Unsupported OS: $os" >&2 + exit 1 + ;; esac