[modify] add openwrt to restore and gather all tasks which need to execute to init.sh
This commit is contained in:
		
							
								
								
									
										14
									
								
								update/init.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								update/init.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -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 | # php artisan koel:sync | ||||||
| # /app/Models/User.php --> sprintf('https://www.rustle.cc/assets/img/logo.jpg', md5($this->email)) | # /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 | # configure cloudreve after mysql docker is up | ||||||
| echo -e "\n\e[1;34mRestore cloudreve env...\e[0m\n" | echo -e "\n\e[1;34mRestore cloudreve env...\e[0m\n" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user