Debian Codegraph @

other/archived_types/__autofs/manifest

raw
1 #!/bin/sh
2 #
3 # 2012 Steven Armstrong (steven-cdist at armstrong.cc)
4 # 2012 Nico Schottelius (nico-cdist at schottelius.org)
5 #
6 # This file is part of cdist.
7 #
8 # cdist is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # cdist is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with cdist. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22
23 os=$(cat "$__global/explorer/os")
24
25 case "$os" in
26 ubuntu|debian|archlinux|devuan)
27 __package autofs --state present
28 __start_on_boot autofs --state present
29 ;;
30 *)
31 echo "Unsupported OS: $os" >&2
32 exit 1
33 ;;
34 esac