File: precheck.sh

package info (click to toggle)
unbound 1.13.1-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,604 kB
  • sloc: ansic: 110,494; sh: 6,028; yacc: 3,391; python: 1,945; makefile: 1,689; awk: 161; perl: 158; xml: 36
file content (16 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# dnscrypt precheck.sh

# if no dnscrypt; exit
if grep "define USE_DNSCRYPT 1" $PRE/config.h; then
        echo "have dnscrypt"
else
        echo "no dnscrypt"
        exit 0
fi

# if no xchacha20 support in unbound; exit
if grep "define USE_DNSCRYPT_XCHACHA20 1" $PRE/config.h; then
        xchacha20=1
else
        xchacha20=0
fi