profiles 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. diffutils \
  12. tar \
  13. iperf3 \
  14. bash \
  15. rsync \
  16. luci-app-wireguard \
  17. luci-proto-wireguard \
  18. luci-app-statistics \
  19. luci-app-attendedsysupgrade \
  20. collectd-mod-sensors \
  21. collectd-mod-thermal \
  22. collectd-mod-conntrack \
  23. collectd-mod-cpu"
  24. # declare -Ag archer
  25. # archer['device']="tplink_archer-c7-v2"
  26. # archer['target']="ath79/generic"
  27. # archer['filesystem']="squashfs"
  28. # archer['packages']="\
  29. # $default_packages \
  30. # -dnsmasq \
  31. # -odhcpd \
  32. # -iptables \
  33. # -ath10k-firmware-qca988x-ct \
  34. # ath10k-firmware-qca988x-ct-full-htt"
  35. # declare -Ag linksys
  36. # linksys['device']="linksys_ea8300"
  37. # linksys['target']="ipq40xx/generic"
  38. # linksys['filesystem']="squashfs"
  39. # linksys['packages']="\
  40. # $default_packages \
  41. # -dnsmasq \
  42. # -odhcpd \
  43. # -iptables"
  44. declare -Ag rpi4
  45. rpi4['device']="rpi-4"
  46. rpi4['target']="bcm27xx/bcm2711"
  47. rpi4['filesystem']="ext4"
  48. rpi4['packages']="\
  49. $default_packages \
  50. kmod-usb-net-asix-ax88179 \
  51. kmod-usb-net-rtl8152 \
  52. luci-app-upnp \
  53. luci-app-wireguard \
  54. luci-app-pbr \
  55. -dnsmasq \
  56. dnsmasq-full \
  57. luci-app-ddns \
  58. luci-app-sqm"
  59. # declare -Ag r2s
  60. # r2s['device']="friendlyarm_nanopi-r2s"
  61. # r2s['target']="rockchip/armv8"
  62. # r2s['filesystem']="ext4"
  63. # r2s['packages']="\
  64. # $default_packages \
  65. # luci-app-upnp \
  66. # luci-app-wireguard \
  67. # luci-app-pbr \
  68. # -dnsmasq \
  69. # dnsmasq-full \
  70. # luci-app-ddns \
  71. # luci-app-sqm \
  72. # luci-app-statistics \
  73. # collectd-mod-sensors \
  74. # collectd-mod-thermal \
  75. # collectd-mod-conntrack \
  76. # smcroute \
  77. # curl \
  78. # ethtool"
  79. # declare -Ag r2s_tr
  80. # r2s_tr['device']="friendlyarm_nanopi-r2s"
  81. # r2s_tr['target']="rockchip/armv8"
  82. # r2s_tr['filesystem']="ext4"
  83. # r2s_tr['packages']="\
  84. # $default_packages \
  85. # luci-app-upnp \
  86. # luci-app-wireguard \
  87. # luci-app-pbr \
  88. # luci-app-ddns \
  89. # luci-app-statistics \
  90. # collectd-mod-sensors \
  91. # collectd-mod-thermal \
  92. # collectd-mod-conntrack \
  93. # curl \
  94. # ethtool \
  95. # travelmate"
  96. declare -Ag r4s
  97. r4s['device']="friendlyarm_nanopi-r4s"
  98. r4s['target']="rockchip/armv8"
  99. r4s['filesystem']="ext4"
  100. r4s['packages']="\
  101. $default_packages \
  102. luci-app-ddns \
  103. irqbalance \
  104. collectd-mod-df \
  105. usbutils \
  106. kmod-usb-storage \
  107. kmod-usb-storage-uas \
  108. kmod-fs-btrfs \
  109. btrfs-progs \
  110. block-mount \
  111. smcroute \
  112. avahi-daemon \
  113. curl \
  114. ethtool \
  115. ca-bundle \
  116. -libustream-wolfssl"
  117. # The following are source mode only
  118. r4s['kopts']="\
  119. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  120. CONFIG_BTRFS_PROGS_ZSTD=y \
  121. CONFIG_TARGET_ROOTFS_PARTSIZE=1024"
  122. r4s['files']="\
  123. /mnt/backup"
  124. # declare -Ag r4s_stock
  125. # r4s_stock['device']="friendlyarm_nanopi-r4s"
  126. # r4s_stock['target']="rockchip/armv8"
  127. # r4s_stock['filesystem']="ext4"
  128. # r4s_stock['release']="snapshot"
  129. declare -Ag ax6000
  130. ax6000['device']="xiaomi_redmi-router-ax6000-stock"
  131. ax6000['target']="mediatek/filogic"
  132. ax6000['release']="snapshot"
  133. ax6000['filesystem']="squashfs"
  134. ax6000['packages']="\
  135. $default_packages \
  136. -dnsmasq \
  137. -odhcpd-ipv6only \
  138. -nftables \
  139. -firewall4 \
  140. -kmod-nft-offload \
  141. collectd-mod-iwinfo"
  142. declare -Ag ax6000_uboot
  143. ax6000_uboot['device']="xiaomi_redmi-router-ax6000-ubootmod"
  144. ax6000_uboot['target']="mediatek/filogic"
  145. ax6000_uboot['release']="snapshot"
  146. ax6000_uboot['filesystem']="squashfs"
  147. ax6000_uboot['packages']="\
  148. $default_packages \
  149. -dnsmasq \
  150. -odhcpd-ipv6only \
  151. -nftables \
  152. -firewall4 \
  153. -kmod-nft-offload \
  154. collectd-mod-iwinfo"
  155. declare -Ag totolink
  156. totolink['device']="totolink_x5000r"
  157. totolink['target']="ramips/mt7621"
  158. totolink['filesystem']="squashfs"
  159. totolink['packages']="\
  160. $default_packages \
  161. -dnsmasq \
  162. -odhcpd-ipv6only \
  163. -nftables \
  164. -firewall4 \
  165. -kmod-nft-offload \
  166. collectd-mod-iwinfo"