houxiao
2017-03-28 4c606baa053c5395e83ebfb48a45913625fca7c5
add config

git-svn-id: http://192.168.1.226/svn/proxy@216 454eff88-639b-444f-9e54-f578c98de674
1个文件已添加
1个文件已修改
17 ■■■■ 已修改文件
ProxyConsole/auto-net-ip.sh 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProxyConsole/config.mediaalarm8.json 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProxyConsole/auto-net-ip.sh
New file
@@ -0,0 +1,11 @@
#!/bin/sh
#crontab:
#*/2 * * * * /bin/sh /opt/auto-net-ip.sh > /dev/null 2>&1
HAS_NET=`ifconfig | grep enp1s0 | grep 172.16`
if [ -z "$HAS_NET" ]; then
    echo "set ip address"
    ifconfig enp1s0 172.16.23.10/16
fi
ProxyConsole/config.mediaalarm8.json
@@ -82,7 +82,7 @@
                "channel" : 0,
                "byWallNo" : 1,
                "dwSubWinNo" : 1,
                "dwWinNo" : 18,
                "dwWinNo" : [15,18],
                "lAlarmOutPort" : 1
            }
        },
@@ -450,6 +450,7 @@
            }
        },
    
        {
            "id" : 18,
            "type" : 4,
@@ -475,7 +476,6 @@
                "lAlarmOutPort" : 1
            }
        },
        {
            "id" : 19,
            "type" : 4,
@@ -501,8 +501,6 @@
                "lAlarmOutPort" : 1
            }
        }
    
    ]
}