Added mikrotik CHR
This commit is contained in:
parent
6d54421c10
commit
cdcf8c3598
20
mikrotik-chr-from-img/Makefile
Normal file
20
mikrotik-chr-from-img/Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
all:
|
||||||
|
echo OK
|
||||||
|
|
||||||
|
install-dependencies-rhel:
|
||||||
|
dnf install -y wget qemu-img unzip
|
||||||
|
|
||||||
|
install-dependencies-kali:
|
||||||
|
apt update
|
||||||
|
apt install -y qemu-utils wget parted unzip
|
||||||
|
|
||||||
|
download-7.12.1-image:
|
||||||
|
mkdir -p /tmp/chr
|
||||||
|
wget https://download.mikrotik.com/routeros/7.12.1/chr-7.12.1.img.zip -O /tmp/chr/chr-7.12.1.img.zip
|
||||||
|
cd /tmp/chr/ && unzip chr*.img.zip && ln -s chr-7.12.1.img chr.img
|
||||||
|
|
||||||
|
write-image-to-sda:
|
||||||
|
qemu-img convert -p -f raw -O raw /tmp/chr/chr.img /dev/sda
|
||||||
|
|
||||||
|
fix-gpt:
|
||||||
|
/bin/sh fix-gpt-free-space.sh
|
3
mikrotik-chr-from-img/fix-gpt-free-space.sh
Normal file
3
mikrotik-chr-from-img/fix-gpt-free-space.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
printf "fix\n" | parted ---pretend-input-tty /dev/sda print
|
Loading…
Reference in New Issue
Block a user