profiles 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. #!/usr/bin/env bash
  2. # shellcheck disable=SC2034
  3. # This file contains a set of device profiles for openwrtbuilder
  4. # bash doesn't like nested arrays so we use strings instead
  5. # Packages to install for all profiles
  6. default_packages="\
  7. luci \
  8. luci-ssl \
  9. nano \
  10. htop \
  11. tcpdump \
  12. diffutils \
  13. tar \
  14. iperf \
  15. bash \
  16. rsync \
  17. openssh-sftp-server \
  18. luci-app-statistics \
  19. collectd-mod-sensors \
  20. collectd-mod-thermal \
  21. collectd-mod-conntrack \
  22. collectd-mod-cpu " # Leave trailing whitespace
  23. declare -Ag archer
  24. archer['profile']="tplink_archer-c7-v2"
  25. archer['target']="ath79/generic"
  26. archer['filesystem']="squashfs"
  27. archer['packages']="\
  28. $default_packages \
  29. -dnsmasq \
  30. -odhcpd \
  31. -iptables \
  32. -ath10k-firmware-qca988x-ct \
  33. ath10k-firmware-qca988x-ct-full-htt"
  34. declare -Ag linksys
  35. linksys['profile']="linksys_ea8300"
  36. linksys['target']="ipq40xx/generic"
  37. linksys['filesystem']="squashfs"
  38. linksys['packages']="\
  39. $default_packages \
  40. -dnsmasq \
  41. -odhcpd \
  42. -iptables"
  43. declare -Ag rpi4
  44. rpi4['profile']="rpi-4"
  45. rpi4['target']="bcm27xx/bcm2711"
  46. rpi4['filesystem']="ext4"
  47. rpi4['packages']="\
  48. $default_packages \
  49. kmod-usb-net-asix-ax88179 \
  50. kmod-usb-net-rtl8152 \
  51. luci-app-upnp \
  52. luci-app-wireguard \
  53. luci-app-vpn-policy-routing \
  54. -dnsmasq \
  55. dnsmasq-full \
  56. luci-app-ddns \
  57. luci-app-sqm"
  58. declare -Ag r2s
  59. r2s['profile']="friendlyarm_nanopi-r2s"
  60. r2s['target']="rockchip/armv8"
  61. r2s['filesystem']="ext4"
  62. r2s['packages']="\
  63. $default_packages \
  64. luci-app-upnp \
  65. luci-app-wireguard \
  66. luci-app-vpn-policy-routing \
  67. -dnsmasq \
  68. dnsmasq-full \
  69. luci-app-ddns \
  70. luci-app-sqm \
  71. luci-app-statistics \
  72. collectd-mod-sensors \
  73. collectd-mod-thermal \
  74. collectd-mod-conntrack \
  75. smcroute \
  76. curl \
  77. ethtool"
  78. declare -Ag r4s
  79. r4s['profile']="friendlyarm_nanopi-r4s"
  80. r4s['target']="rockchip/armv8"
  81. r4s['filesystem']="ext4"
  82. r4s['packages']="\
  83. $default_packages \
  84. luci-app-upnp \
  85. luci-app-wireguard \
  86. luci-app-ddns \
  87. luci-app-sqm \
  88. irqbalance \
  89. collectd-mod-sqm \
  90. collectd-mod-df \
  91. pbr \
  92. luci-app-pbr \
  93. usbutils \
  94. kmod-usb-storage \
  95. kmod-usb-storage-uas \
  96. kmod-fs-btrfs \
  97. btrfs-progs \
  98. block-mount \
  99. smcroute \
  100. curl \
  101. ethtool \
  102. ca-bundle"
  103. r4s['kopts']="\
  104. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  105. "
  106. declare -Ag ax6000_stock
  107. ax6000_stock['profile']="xiaomi_redmi-router-ax6000-stock"
  108. ax6000_stock['target']="mediatek/filogic"
  109. ax6000_stock['release']="snapshot"
  110. ax6000_stock['filesystem']="squashfs"
  111. ax6000_stock['packages']="\
  112. $default_packages \
  113. -dnsmasq \
  114. -odhcpd-ipv6only \
  115. -nftables \
  116. -firewall4 \
  117. -kmod-nft-offload \
  118. collectd-mod-iwinfo"
  119. declare -Ag ax6000_uboot
  120. ax6000_uboot['profile']="xiaomi_redmi-router-ax6000-ubootmod"
  121. ax6000_uboot['target']="mediatek/filogic"
  122. ax6000_uboot['release']="snapshot"
  123. ax6000_uboot['filesystem']="squashfs"
  124. ax6000_uboot['packages']="\
  125. $default_packages \
  126. -dnsmasq \
  127. -odhcpd-ipv6only \
  128. -nftables \
  129. -firewall4 \
  130. -kmod-nft-offload \
  131. collectd-mod-iwinfo"
  132. declare -Ag totolink
  133. totolink['profile']="totolink_x5000r"
  134. totolink['target']="ramips/mt7621"
  135. totolink['filesystem']="squashfs"
  136. totolink['packages']="\
  137. $default_packages \
  138. -dnsmasq \
  139. -odhcpd-ipv6only \
  140. -nftables \
  141. -firewall4 \
  142. -kmod-nft-offload \
  143. collectd-mod-iwinfo"