|
|
@@ -1,14 +1,16 @@
|
|
|
#!/bin/bash
|
|
|
-
|
|
|
- wget -c https://downloads.openwrt.org/releases/23.05.4/targets/x86/64/openwrt-23.05.4-x86-64-generic-squashfs-rootfs.img.gz
|
|
|
- gzip -d openwrt-23.05.4-x86-64-generic-squashfs-rootfs.img.gz
|
|
|
- unsquashfs openwrt-23.05.4-x86-64-generic-squashfs-rootfs.img
|
|
|
+ rm -rf ./openwrt-*
|
|
|
+ #wget -c https://downloads.openwrt.org/releases/23.05.4/targets/x86/64/openwrt-23.05.4-x86-64-generic-squashfs-rootfs.img.gz
|
|
|
+ wget -c https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-squashfs-rootfs.img.gz
|
|
|
+
|
|
|
+ gzip -d openwrt-*-generic-squashfs-rootfs.img.gz
|
|
|
+ unsquashfs openwrt-*-generic-squashfs-rootfs.img
|
|
|
apt install squashfs-tools
|
|
|
- unsquashfs openwrt-23.05.4-x86-64-generic-squashfs-rootfs.img
|
|
|
+ unsquashfs openwrt-*-generic-squashfs-rootfs.img
|
|
|
cd squashfs-root/
|
|
|
- tar -czf ../openwrt-x86-64-generic-squashfs-rootfs-plus-daily.tar.gz *
|
|
|
+ tar -czf ../openwrt-x86-64-generic-squashfs-rootfs.tar.gz *
|
|
|
cd ..
|
|
|
- cp openwrt-x86-64-generic-squashfs-rootfs-plus-daily.tar.gz /var/lib/vz/template/cache/
|
|
|
+ cp openwrt-x86-64-generic-squashfs-rootfs.tar.gz /var/lib/vz/template/cache/
|
|
|
|
|
|
|
|
|
pct create 100 local:vztmpl/openwrt-x86-64-generic-squashfs-rootfs-plus-daily.tar.gz --rootfs local:1 --ostype unmanaged --hostname OpenWrtAll --arch amd64 --cores 2 --memory 1024 --swap 0 -net0 bridge=vmbr0,name=eth0
|