mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-21 09:35:43 +02:00
Initial Commit.
This commit is contained in:
parent
e2a6c6e658
commit
830306a771
2 changed files with 25 additions and 0 deletions
11
RouterOS_Array_Append.rsc
Normal file
11
RouterOS_Array_Append.rsc
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# RouterOS Fucntion
|
||||||
|
# Copyright (c) Grzegorz Budny
|
||||||
|
# Version 1.0
|
||||||
|
# Last update: 2020-04-19 19:02:12
|
||||||
|
# Array append value wrapper
|
||||||
|
|
||||||
|
:global ArrayAppend do={
|
||||||
|
|
||||||
|
:set ($array->([:len $array])) $value;
|
||||||
|
|
||||||
|
}
|
14
RouterOS_Enable_Console.rsc
Normal file
14
RouterOS_Enable_Console.rsc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# RouterOS Function
|
||||||
|
# Copyright (c) Grzegorz Budny
|
||||||
|
# Enables Console port
|
||||||
|
|
||||||
|
:global EnableConsole do={
|
||||||
|
|
||||||
|
/system console disable 0
|
||||||
|
/port set serial0 baud-rate=19200 data-bits=8 parity=none stop-bits=1
|
||||||
|
|
||||||
|
:log info "...:::Console Enabled. System needs to be rebooted:::..."
|
||||||
|
|
||||||
|
#/port set serial0 baud-rate=auto
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue