File: config

package info (click to toggle)
flashybrid 0.18
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 212 kB
  • ctags: 4
  • sloc: sh: 193; makefile: 45
file content (43 lines) | stat: -rwxr-xr-x 1,119 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh

set -e

ENABLED=no

if [ -e /etc/default/flashybrid ]; then
        . /etc/default/flashybrid
else

        # create a new default file "manually"
        # now the file is not part of the package
        # and when users modify it, they will not be
        # asked stupid questions.

cat > /etc/default/flashybrid <<EOF
# This file controls the flashybrid init script.

# Whether to start flashybrid on boot, and shut it down on shutdown.
# This has the potential to break your system if it is turned on, so
# make sure you understand flashybrid, and have configured it for your
# system, before turning this on.
ENABLED=no

# Whether to display a message before a directory is synchronized or not.
VERBOSE=yes
EOF

fi

if [ "$ENABLED" = yes ]; then
        # on systems with flashybrid installed and setup
        # we assume that the user already saw this message
        # and knows how to deal with it.
        # this means that users of this package will not
        # see these warnings on upgrades.
        exit
fi

. /usr/share/debconf/confmodule

db_input critical flashybrid/remove  || true
db_go