You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
341 B

7 months ago
BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
CLI="python3 $BASE_DIR/ctrl_cli.py"
if [ $# -lt 1 ]; then
echo "Usage: $0 FEATURE [FEATURE ...]" >&2
echo " 예) $0 OBJDET"
echo " 예) $0 OBJDET FIRE"
exit 1
fi
# 1) 먼저 전부 끄기
$CLI "ALL_OFF"
# 2) 넘겨준 FEATURE 들을 순서대로 ON
for f in "$@"; do
$CLI "ON $f"
done