|
|
@ -1,6 +1,7 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/bin/sh |
|
|
|
# |
|
|
|
# |
|
|
|
# 2012 Steven Armstrong (steven-cdist at armstrong.cc) |
|
|
|
# 2012 Steven Armstrong (steven-cdist at armstrong.cc) |
|
|
|
|
|
|
|
# 2012 Nico Schottelius (nico-cdist at schottelius.org) |
|
|
|
# |
|
|
|
# |
|
|
|
# This file is part of cdist. |
|
|
|
# This file is part of cdist. |
|
|
|
# |
|
|
|
# |
|
|
@ -21,18 +22,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
os=$(cat "$__global/explorer/os") |
|
|
|
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 |
|
|
|
case "$os" in |
|
|
|
ubuntu|debian|archlinux) |
|
|
|
ubuntu|debian|archlinux) |
|
|
|
__package autofs --state present |
|
|
|
__package autofs --state present |
|
|
|
__start_on_boot autofs --state present |
|
|
|
__start_on_boot autofs --state present |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
*) |
|
|
|
not_supported |
|
|
|
echo "Unsupported OS: $os" >&2 |
|
|
|
;; |
|
|
|
exit 1 |
|
|
|
|
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|