Skip to content

Instantly share code, notes, and snippets.

@pyther
Created July 14, 2020 23:02
Show Gist options
  • Save pyther/901d9c6f90c97be5a2a8d2e03c3bd2e0 to your computer and use it in GitHub Desktop.
Save pyther/901d9c6f90c97be5a2a8d2e03c3bd2e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
HARDWARE="\
kmod-pcengines-apuv2 \
kmod-crypto-hw-ccp \
kmod-gpio-nct5104d kmod-gpio-button-hotplug \
kmod-sp5100-tco \
kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb3 \
kmod-sound-core kmod-pcspkr \
amd64-microcode \
flashrom irqbalance fstrim"
ADMIN="htop"
BASE="block-mount ca-bundle"
NET="bind-dig bind-host curl ethtool https-dns-proxy iptables-mod-conntrack-extra iftop openssh-server ss tcpdump vnstat wget"
SYS="gdisk fdisk pciutils usbutils"
UTILS="bash lsof pciutils shadow-useradd usbutils vim-fuller"
VPN="kmod-wireguard wireguard-tools"
DOCKER="docker-ce"
# My Sections
KERNEL_FS="kmod-fs-vfat kmod-fs-exfat kmod-fs-ext4 kmod-fs-xfs"
LUCI="luci-ssl-nginx luci-app-https-dns-proxy luci-app-vnstat luci-app-wireguard"
# Set Image Size
sed -i 's/CONFIG_TARGET_ROOTFS_PARTSIZE=.*$/CONFIG_TARGET_ROOTFS_PARTSIZE=512/' .config || exit 1
make image PACKAGES="$HARDWARE $BASE $ADMIN $NET $SYS $UTILS $VPN $KERNEL_FS $LUCI $TOOLS $VPN $FS $LUCI $DOCKER goeap_proxy -kmod-r8169 -ppp -ppp-mod-pppoe" V=s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment