. /link/shell/util/hardware.sh
/link/shell/setMac.sh
sleep 1
if [ -f /link/config/auto/webVer.json ] && web=$(jq -r ".web" /link/config/auto/webVer.json) && [ "$web" != "classic" ] ;then
cp /usr/nginx/conf/nginx_standard.conf /usr/nginx/conf/nginx.conf
title=`grep -o '
.*' /link/web/headhead.php | sed -e 's/\(.*\)<\/title>/\1/'`
footer=`awk '//,/<\/div>/' /link/web/foot.php | grep -o '
.*<\/div>' | sed -e 's/
\(.*\)<\/div>/\1/' | sed -e 's/<\/div>//g'`
sed -i "s/
.*<\/title>/${title}<\/title>/" /link/webflex/public/headhead.inc
sed -i '//,/<\/div>/ s/>[^<]*>'"${footer}"'