blob: 9f3e71a19c45d702d5621facd5823eae359a7c1b (
plain)
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/ash
#
# nannycam init hook
#
run_hook () { (
set -e
set -u
# Grab configuration
if [ -z ${1:-} ]; then
source /etc/nannycam.conf
else
source "$1"
fi
# Invoke the nannycam script
NANNYCAM="$(pwd)/nannycam"
if [ ! -f "$NANNYCAM" ]; then
NANNYCAM="/usr/lib/nannycam/nannycam"
fi
source $NANNYCAM \
-k "$AUTH_KEY_FILE" \
-h "$HASH_ALG" \
-q "$QR_OPTS" \
-m "$EXPECTED_MBR_HASH" \
-p "$EXPECTED_MBR_GAP_HASH" \
-e "$EXPECTED_EFI_STUB_HASH"
) }
|