From 55eca96646d249dd2ad985d2dd60158876787721 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Fri, 5 Jun 2020 16:36:32 +0200 Subject: [PATCH] Change order of files creation --- routeros/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routeros/README.md b/routeros/README.md index 25e9304..d8d5d15 100644 --- a/routeros/README.md +++ b/routeros/README.md @@ -1,17 +1,17 @@ Run fresh Powerbox configuration : ``` -RBNAME='P6-PB'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/powerbox-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-PB'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/powerbox-init.rsc" dst-path=/flash/init.rsc; /file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ``` Run fresh RB SXT configuration : ``` -RBNAME='P6-POWN'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/sxt5ac-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-POWN'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/sxt5ac-init.rsc" dst-path=/flash/init.rsc; /file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ``` Run fresh RB Metal 5 Ghz configuration : ``` -RBNAME='P6-O5'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal5-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-O5'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal5-init.rsc" dst-path=/flash/init.rsc; /file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ``` Run fresh RB Metal 2.4 Ghz configuration : ``` -RBNAME='P6-O2'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal2-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-O2'; ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal2-init.rsc" dst-path=/flash/init.rsc; /file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ```