Guest User

Untitled

a guest
May 15th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1.  
  2. mkdir dl
  3. mkdir ax6s
  4. cd ax6s
  5. git clone https://github.com/openwrt/openwrt.git
  6. cd openwrt
  7. git checkout v22.03.5
  8.  
  9. ln -sf ../../dl dl
  10.  
  11. cat << "EOF" > package/base-files/files/etc/uci-defaults/20_wifi_config
  12. uci set wireless.@wifi-device[0].disabled="0"
  13. uci set wireless.@wifi-iface[0].disabled="0"
  14. uci set wireless.@wifi-iface[0].ssid="OpenWrt"
  15. uci set wireless.@wifi-iface[0].key="Openwrt_Persian"
  16. uci set wireless.@wifi-iface[0].encryption="psk2"
  17. uci commit wireless
  18. EOF
  19.  
  20. cat << "EOF" > package/base-files/files/etc/uci-defaults/22_lan_config
  21. uci set network.lan.ipaddr=192.168.22.1
  22. uci commit network
  23. EOF
  24.  
  25.  
  26. cat << "EOF" >> feeds.conf.default
  27. src-git-full passwall https://github.com/xiaorouji/openwrt-passwall.git
  28. src-git-full passwall2 https://github.com/xiaorouji/openwrt-passwall2.git
  29. EOF
  30.  
  31.  
  32. incase of unstable connection do this part multiple times
  33. ./scripts/feeds update -a && ./scripts/feeds update -a || ./scripts/feeds update -a || ./scripts/feeds update -a
  34. ./scripts/feeds install -a && ./scripts/feeds install -a || ./scripts/feeds install -a || ./scripts/feeds install -a
  35.  
  36. ./scripts/feeds update -a
  37. ./scripts/feeds install -a
  38.  
  39. sed -i "s/China/Iran/g" feeds/passwall2/luci-app-passwall2/root/usr/share/passwall2/0_default_config
  40. sed -i "s/geoip:cn/geoip:ir/g" feeds/passwall2/luci-app-passwall2/root/usr/share/passwall2/0_default_config
  41. sed -i "s/geosite:cn/geosite:category-ir/g" feeds/passwall2/luci-app-passwall2/root/usr/share/passwall2/0_default_config
  42.  
  43.  
  44. Target System (x86)
  45. Subtarget (x86_64)
  46. Target Profile (Generic x86/64)
  47. Target Images --->
  48. (32) Kernel partition size
  49. (410) Root filesystem partition size (in MiB)
  50. Base system --->
  51. dnsmasq remove
  52. dnsmasq-full add
  53. blockd
  54. LuCI --->
  55. 1. Collections --->
  56. luci
  57. 2. Modules --->
  58. luci-mod-dashboard
  59. 3. Applications --->
  60. luci-app-ddns.........
  61. luci-app-openvpn......
  62. luci-app-passwall2....
  63. luci-app-wireguard....
  64. luci-app-wol......
  65. 5. Protocols --->
  66. luci-proto-openconnect
  67. luci-proto-sstp.......
  68. Network --->
  69. VPN --->
  70. openvpn-openssl.
  71. openvpn-easy-rsa
  72.  
  73.  
  74.  
  75.  
Advertisement
Add Comment
Please, Sign In to add comment