File: havp.config

package info (click to toggle)
havp 0.92a-4%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,568 kB
  • sloc: cpp: 7,473; sh: 474; makefile: 100
file content (32 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

CONFIGFILE=/etc/default/havp

. /usr/share/debconf/confmodule

# Load config file, if it exists. 
if [ -e $CONFIGFILE ]; then 
    . $CONFIGFILE || true
    db_set havp/loopback_mount $USE_LOOPBACK
fi

db_input medium havp/loopback_mount || true

db_go || true

db_get havp/loopback_mount
if [ "$RET" = "true" ]; then
    # may do something like this in the future to find a good default
     
    #havp_partition=$havp_dir
    #until [ "`df -h | grep \" \"$havp_partition\"$\"`" ]; do
    #  havp_partition=`dirname $havp_partition`;
    #done

    #havp_loopsize=`df | grep " "$havp_partition"$" | awk '{print $4/2}' | sed 's/\..*//'`

    db_input medium havp/loopback_size || true
    db_go || true
fi