#!/bin/bash
if [ -f "/opt/emq-ver" ]; then
sed -i '156,183{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
sed -i '204,217{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
#sed -i '189,203{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
sed -i '133,154{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
sed -i '190s/.*/<!-- &  -->/' /var/www/dvs/index.php
#no allmon2
sed -i "220s/etc\/asterisk\/extensions.conf/etc\/asterisk\/extensions.conf2/" /var/www/dvs/index.php
fi
if [ ! -f "/opt/emq-ver" ]; then
sed -i '156,183{/^$/!s/^/\/\/ /}' /var/www/html/index.php
sed -i '204,217{/^$/!s/^/\/\/ /}' /var/www/html/index.php
#sed -i '189,203{/^$/!s/^/\/\/ /}' /var/www/html/index.php
sed -i '133,154{/^$/!s/^/\/\/ /}' /var/www/html/index.php
sed -i '190s/.*/<!-- &  -->/' /var/www/html/index.php
#no allmon2
sed -i "220s/etc\/asterisk\/extensions.conf/etc\/asterisk\/extensions.conf2/" /var/www/html/index.php
fi
