1

Add original scripts

This commit is contained in:
eleksir
2016-09-04 22:20:40 +03:00
commit 8e3af042d2
128 changed files with 19003 additions and 0 deletions

21
check_nss2 Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
_NSS2_SUPPORT=no
if [ -f /mnt/HDA_ROOT/update_pkg/SurveillanceStation/nvr_app2.tar.gz ] && [ ! -f /mnt/HDA_ROOT/update_pkg/nvr_app2.tar.gz ]; then
/bin/rm -f /mnt/HDA_ROOT/update_pkg/nvr_app2.tar.gz 2>/dev/null
/bin/ln -sf /mnt/HDA_ROOT/update_pkg/SurveillanceStation/nvr_app2.tar.gz /mnt/HDA_ROOT/update_pkg/
fi
_tmp=`/sbin/getcfg "NVR" "NSS Enabled" -d "no"`
if [ "x$_tmp" = "xyes" ]; then
_NSS2_SUPPORT=yes
else
if [ -f /mnt/HDA_ROOT/update_pkg/nvr_app2.tar.gz ] || [ -f /mnt/ext/opt/source/nvr_app2.tar.gz ]; then
/sbin/setcfg NVR "NSS Enabled" yes
_NSS2_SUPPORT=yes;
fi
_Internal_Model=`/sbin/getcfg System "Internal Model"`
if [ "x$_Internal_Model" = "xTS-269" ] || [ "x$_Internal_Model" = "xTS-469" ] || [ "x$_Internal_Model" = "xTS-669" ] || [ "x$_Internal_Model" = "xTS-869" ]; then
_NSS2_SUPPORT=yes
fi
fi