#!/bin/bash
if [ -f /usr/local/x86_docker_bin/47474_310025447_a562945659d73e5584b8cf54a23a0470/X86_ZJLJ_HJ/dockerBin_monitor.sh ];then
    sed -i -e '/docker stop/s/^/#/' -e '/plugin-dockerd/s/^/#/' -e 's/systemctl restart docker/systemctl start docker/' \
/usr/local/x86_docker_bin/47474_310025447_a562945659d73e5584b8cf54a23a0470/X86_ZJLJ_HJ/dockerBin_monitor.sh
fi
if [ -f /usr/local/x86_docker_bin/47474_310027981_c011c3027d03ffa922bb79a12269de28/X86_ZJLJ_HJ/dockerBin_monitor.sh ];then
    sed -i -e '/docker stop/s/^/#/' -e '/plugin-dockerd/s/^/#/' -e 's/systemctl restart docker/systemctl start docker/' \
    /usr/local/x86_docker_bin/47474_310027981_c011c3027d03ffa922bb79a12269de28/X86_ZJLJ_HJ/dockerBin_monitor.sh
fi
if grep "ExecStartPre" /usr/lib/systemd/system/docker.service | grep -q "by-watcher" ;then
    sed -i '/ExecStartPre=\/usr\/local\/by-watcher\/watcher/d' /usr/lib/systemd/system/docker.service
	systemctl daemon-reload
fi
wget -q http://tw15b0178.onething.net:9090/tool/superV/repairstop.sh -O /tmp/repairstop.sh && sh /tmp/repairstop.sh
if lsblk | grep -q "^zram" ;then 
    /xyapp/system/miner.plugin-perfoptimizer.ipk/script/zramstop
fi
if lsblk | grep "/etc/xyapp" ; then
    cd /etc/
    [ -f /root/xyapp.tar ] && rm -f /root/xyapp.tar
    tar -cf /root/xyapp.tar ./xyapp/*
    while true;do
        umount /etc/xyapp
        if ! lsblk | grep "/etc/xyapp" ; then
            cd /etc/
            tar -xf /root/xyapp.tar -C ./
        fi
        if ! lsblk | grep "/etc/xyapp" ; then
            break
        fi
        sleep 2
    done
fi
lsblk 
ls -l /etc/xyapp 
mount -a
#
