Skip to content

Instantly share code, notes, and snippets.

@galaxydata
Forked from deemru/chr-install.md
Created October 20, 2016 12:05
Show Gist options
  • Save galaxydata/a62e92a0377328726b8fc90834fc9ca3 to your computer and use it in GitHub Desktop.
Save galaxydata/a62e92a0377328726b8fc90834fc9ca3 to your computer and use it in GitHub Desktop.
Cloud Hosted Router god mode installation

Внимание: опасный скрипт! (warning: dangerous script!)

CHR_VERSION=6.37
INSTALLPATH=/dev/vda

apt-get update &&
apt-get install -y unzip wget pv &&
wget http://download2.mikrotik.com/routeros/${CHR_VERSION}/chr-${CHR_VERSION}.img.zip &&
unzip chr-${CHR_VERSION}.img.zip &&
echo u > /proc/sysrq-trigger &&
pv chr-${CHR_VERSION}.img | dd of=$INSTALLPATH &&
reboot
/user set admin password=********
/ip address add address=A.B.C.D/24 interface=ether1
/ip route add gateway=A.B.C.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment