profiles 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #!/usr/bin/env bash
  2. # shellcheck disable=SC2034
  3. # Device profiles for openwrtbuilder
  4. # Default packages
  5. default_packages="luci luci-ssl luci-proto-wireguard luci-app-statistics \
  6. collectd-mod-sensors collectd-mod-thermal collectd-mod-conntrack \
  7. collectd-mod-cpu nano htop diffutils tar iperf3 zsh rsync \
  8. openssh-sftp-server"
  9. # Current devices
  10. declare -Ag r4s=(
  11. [device]="friendlyarm_nanopi-r4s"
  12. [target]="rockchip/armv8"
  13. [filesystem]="ext4"
  14. [packages]="$default_packages luci-app-ddns luci-app-sqm irqbalance \
  15. collectd-mod-df usbutils kmod-usb-storage kmod-usb-storage-uas \
  16. kmod-fs-btrfs btrfs-progs block-mount smcroute avahi-daemon \
  17. curl ethtool ca-bundle"
  18. [config]="CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
  19. CONFIG_BUILDBOT=n"
  20. [files]="/mnt/backup"
  21. )
  22. declare -Ag ax6000=(
  23. [device]="xiaomi_redmi-router-ax6000-stock"
  24. [target]="mediatek/filogic"
  25. [release]="snapshot"
  26. [filesystem]="squashfs"
  27. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4"
  28. )
  29. declare -Ag ax6000_uboot=(
  30. [device]="xiaomi_redmi-router-ax6000-ubootmod"
  31. [target]="mediatek/filogic"
  32. [release]="snapshot"
  33. [filesystem]="squashfs"
  34. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4"
  35. )
  36. declare -Ag n5100=(
  37. [device]="generic"
  38. [target]="x86/64"
  39. [filesystem]="squashfs"
  40. [packages]="$default_packages luci-app-ddns irqbalance collectd-mod-df \
  41. usbutils kmod-usb-storage kmod-usb-storage-uas kmod-fs-btrfs \
  42. btrfs-progs block-mount cryptsetup kmod-crypto-xts smcroute \
  43. avahi-daemon curl ethtool ca-bundle smartmontools intel-microcode \
  44. lm-sensors samba4-server luci-app-samba4 tailscale shadow-useradd"
  45. [config]="CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
  46. CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32"
  47. [files]="/mnt/backup"
  48. )
  49. declare -Ag rpi4=(
  50. [device]="rpi-4"
  51. [target]="bcm27xx/bcm2711"
  52. [filesystem]="ext4"
  53. [packages]="$default_packages kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152 \
  54. luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full luci-app-ddns luci-app-sqm"
  55. )
  56. declare -Ag r4s_stock=(
  57. [device]="friendlyarm_nanopi-r4s"
  58. [target]="rockchip/armv8"
  59. [filesystem]="ext4"
  60. [release]="snapshot"
  61. )
  62. declare -Ag totolink=(
  63. [device]="totolink_x5000r"
  64. [target]="ramips/mt7621"
  65. [filesystem]="squashfs"
  66. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4 \
  67. -kmod-nft-offload collectd-mod-iwinfo"
  68. )
  69. declare -Ag archer=(
  70. [device]="tplink_archer-c7-v2"
  71. [target]="ath79/generic"
  72. [filesystem]="squashfs"
  73. [packages]="$default_packages -dnsmasq -odhcpd -iptables \
  74. -ath10k-firmware-qca988x-ct ath10k-firmware-qca988x-ct-full-htt"
  75. )
  76. declare -Ag linksys=(
  77. [device]="linksys_ea8300"
  78. [target]="ipq40xx/generic"
  79. [filesystem]="squashfs"
  80. [packages]="$default_packages -dnsmasq -odhcpd -iptables"
  81. )
  82. declare -Ag r2s=(
  83. [device]="friendlyarm_nanopi-r2s"
  84. [target]="rockchip/armv8"
  85. [filesystem]="ext4"
  86. [packages]="$default_packages luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full \
  87. luci-app-ddns luci-app-sqm luci-app-statistics collectd-mod-sensors \
  88. collectd-mod-thermal collectd-mod-conntrack smcroute curl ethtool"
  89. )
  90. declare -Ag r2s_tr=(
  91. [device]="friendlyarm_nanopi-r2s"
  92. [target]="rockchip/armv8"
  93. [filesystem]="ext4"
  94. [packages]="$default_packages luci-app-upnp luci-app-pbr luci-app-ddns \
  95. luci-app-statistics collectd-mod-sensors collectd-mod-thermal \
  96. collectd-mod-conntrack curl ethtool travelmate"
  97. )