Created
December 29, 2023 21:40
-
-
Save jkoan/320d2183b478c5e86b91b05afcb8aca0 to your computer and use it in GitHub Desktop.
Openwrt x86_64 update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TMP_DIR=$(mktemp -d) | |
cd ${TMP_DIR} | |
tar -xf /home/jan/Downloads/openwrt-imagebuilder-23.05.2-x86-64.Linux-x86_64.tar.xz | |
cd * | |
SOURCE_DIR=$PWD | |
ROOTFS_PARTSIZE=1024 | |
sed -i '/\$(CONFIG_TARGET_ROOTFS_PARTSIZE) \$(IMAGE_ROOTFS)/,/256/ s/256/'"$ROOTFS_PARTSIZE"'/' "$SOURCE_DIR/target/linux/x86/image/Makefile" | |
make clean && make image FILES="/home/jan/Downloads/openwrt-config/backup-OpenWrt-2023-12-29/" PACKAGES="luci-app-wireguard luci-app-wol luci-app-firewall luci-app-opkg wireguard-tools luci-app-adblock luci-app-attendedsysupgrade luci-app-ddns lsblk nano prometheus-node-exporter-lua-openwrt rng-tools qrencode fdisk curl at iperf3 iperf lm-sensors powertop pciutils wget-ssl amd64-microcode luci-theme-bootstrap luci-proto-ipv6" | |
# Neue Paketliste laden | |
#cd /run/media/jan/rootfs;ls usr/lib/opkg/info/*.list | sed -e 's/.*\///' | sed -e 's/\.list//' > ~/Downloads/openwrt-imagebuilder-23.05.1-x86-64.Linux-x86_64/pkg.list;cd | |
zcat bin/targets/x86/64/openwrt-23.05.2-x86-64-generic-ext4-combined-efi.img.gz | ssh [email protected] dd of=/dev/sdb | |
ssh [email protected] reboot | |
rm -rf $TMP_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment