]>
Commit | Line | Data |
---|---|---|
8a2223a4 MR |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | . /etc/default/openmediavault | |
6 | . /usr/share/openmediavault/scripts/helper-functions | |
7 | ||
8 | ||
9 | case "$1" in | |
10 | configure) | |
11 | if ! omv_config_exists "/config/services/zfs"; then | |
12 | echo "Initialize configuration" | |
13 | object="<enable>0</enable>" | |
14 | object="${object}<numberfield1>827</numberfield1>" | |
15 | omv_config_add_element "/config/services" "zfs" "${object}" true | |
16 | fi | |
17 | ;; | |
18 | ||
19 | abort-upgrade|abort-remove|abort-deconfigure) | |
20 | ;; | |
21 | ||
22 | *) | |
23 | echo "postinst called with unknown argument \`$1'" >&2 | |
24 | exit 1 | |
25 | ;; | |
26 | esac | |
27 | ||
28 | #DEBHELPER# | |
29 | ||
30 | exit 0 |