root 1 vuosi sitten
sitoutus
6a52e72868
2 muutettua tiedostoa jossa 14 lisäystä ja 0 poistoa
  1. 0 0
      README.md
  2. 14 0
      openWRT.sh

+ 0 - 0
README.md


+ 14 - 0
openWRT.sh

@@ -0,0 +1,14 @@
+#!/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 
+  apt install  squashfs-tools
+  unsquashfs openwrt-23.05.4-x86-64-generic-squashfs-rootfs.img 
+  cd squashfs-root/
+  tar -czf ../openwrt-x86-64-generic-squashfs-rootfs-plus-daily.tar.gz *
+  cd ..
+  cp openwrt-x86-64-generic-squashfs-rootfs-plus-daily.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