blob: 8c714185d23a0c96b6c0c06f750389cd1bd7ceb0 (
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
|
#!/bin/sh
# shellcheck shell=busybox
set -eu
case "$PKG_NAME" in
prplmesh)
for config in \
/usr/share/prplmesh/config/beerocks_agent.conf \
/usr/share/prplmesh/config/beerocks_controller.conf; do
grep -Fx 'log_global_levels=error,info,warning,fatal' "$config"
grep -Fx 'log_global_syslog_levels=error,info,warning,fatal' "$config"
done
# -h reaches "usage; exit 0" only after main()'s platform guard has
# accepted TARGET_PLATFORM=openwrt; an unpatched helper exits 1 with
# "Unsupported platform: openwrt" instead, so this self-tests patch
# 161.
/usr/libexec/prplmesh/scripts/prplmesh_utils.sh -h
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
|