diff --git a/update/init.sh b/update/init.sh new file mode 100644 index 0000000..115e543 --- /dev/null +++ b/update/init.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +ip link set enp1s0 promisc on +ip link set enp2s0 promisc on +ip link set wlx90de80ca01ec promisc on + +/usr/bin/qbittorrent-nox --webui-port=10005 -d +/usr/bin/bash /opt/scripts/update/jekyll_update.sh +/usr/bin/bash /opt/scripts/update/calibre.sh + + +# /usr/bin/mount -t ext4 -w UUID="b7c2c4b8-bfde-479b-80bb-655432a433b8" /opt/wd + + diff --git a/update/restore.sh b/update/restore.sh index 72d469e..73934c4 100644 --- a/update/restore.sh +++ b/update/restore.sh @@ -291,6 +291,26 @@ docker network create -d bridge --subnet=10.10.0.0/24 --gateway 10.10.0.1 inner # php artisan koel:sync # /app/Models/User.php --> sprintf('https://www.rustle.cc/assets/img/logo.jpg', md5($this->email)) +# docker - openwrt +# docker-compose pull +# docker-compose up -d +# docker exec -it openwrt bash +# ip link set enp1s0 promisc on +# ip link set enp2s0 promisc on +# docker exec -it OpenWRT bash +# vim /etc/config/network +# config interface 'lan' +# option ifname 'eth0' +# option proto 'static' +# option netmask '255.255.255.0' +# option gateway '192.168.0.1' +# option ip6assign '60' +# option dns ' 8.8.8.8 114.114.114.114' +# option ipaddr '192.168.0.254' +# option broadcast '192.168.0.255' +# /etc/init.d/network restart +# modify the above according to different situations + # ============================================================================================================= # configure cloudreve after mysql docker is up echo -e "\n\e[1;34mRestore cloudreve env...\e[0m\n"