Files
wyze-firmware/SD_ROOT/wz_mini/etc/rc.d/S14nightdrop
T
2022-08-05 19:37:32 -07:00

26 lines
449 B
Bash

#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Short-Description: Enable NightDrop support
# Description: Prevent the system from dropping FPS during night mode
### END INIT INFO
. /opt/wz_mini/wz_mini.conf
case "$1" in
start)
echo "#####$(basename "$0")#####"
if [[ "$NIGHT_DROP_DISABLE" == "true" ]]; then
echo "Night Drop Disable, Enabled"
touch /opt/wz_mini/tmp/.nd
fi
;;
*)
echo "Usage: $0 {start}"
exit 1
;;
esac