Commit graph

21 commits

Author SHA1 Message Date
Christian Hesse
d2883e6f43 global-functions: $CertificateDownload: add a delay
For any reason the imported certificate(s) is/are not available for
fetch command immediately. Let's add a delay here... It should not hurt
as certificates are not imported that often.
2023-06-01 21:59:52 +02:00
Christian Hesse
0b8979e5b5 global-functions: $ScriptInstallUpdate: handle scripts with DOS line endings
If the script is converted to DOS line endings (\r\n) on the device it
was no longer handled by $ScriptInstallUpdate. Let's change that...
2023-06-01 21:59:52 +02:00
Christian Hesse
60f863871c global-functions: $ParseDate: handle date in ISO standard format
This was introduced with RouterOS 7.10beta5...

https://xkcd.com/1179/ 😜
2023-05-10 20:02:44 +02:00
Christian Hesse
bafd71344d global-functions: introduce $ParseDate
The extra indention is intended for a later change.
2023-05-10 20:02:44 +02:00
Christian Hesse
c8500dddd0 mod/ssh-keys-import: make ssh-keys-import a module 2023-04-26 10:31:23 +02:00
Christian Hesse
ee94024dca dhcp-to-dns: get domain from dhcp server's network definition 2023-04-24 22:26:26 +02:00
Christian Hesse
fb12aabf3e global-functions: $DeviceInfo: use $FormatLine 2023-04-24 22:26:26 +02:00
Christian Hesse
cb338c76a8 global-functions: introduce $FormatLine 2023-04-24 22:26:26 +02:00
Christian Hesse
9617095022 check-certificates: try all SANs for download 2023-04-07 23:36:09 +02:00
Christian Hesse
415c4144f2 global-functions: $VersionToNum: support "alpha" in version string 2023-03-30 20:58:19 +02:00
Christian Hesse
5f374c469a global-functions: $RequiredRouterOS: accept "alpha" in version string 2023-03-30 20:50:55 +02:00
Christian Hesse
f2e8115272 global-functions: $MkDir: make directory by adding file
This is new functionality in RouterOS 7.9beta4, where new file can be
added with `/file/add ...`. This also creates directories for the full
path.
2023-03-28 15:43:49 +02:00
Christian Hesse
7fdec1abed global-functions: $MkDir: add extra block for indention...
... to make the next commit cleaner. No functional change.
2023-03-28 15:43:35 +02:00
Christian Hesse
d3ca506394 global-functions: $MkDir: create tmpfs in local function 2023-03-28 12:05:47 +02:00
Christian Hesse
7293306f76 global-functions: $MkDir: return false on error 2023-03-28 12:05:47 +02:00
Christian Hesse
847f0a4564 global-functions: $MkDir: drop unused function 2023-03-28 12:05:47 +02:00
Christian Hesse
aac8709881 dhcp-to-dns: always create A record with mac address...
... and an optional CNAME with host name.
2023-03-22 21:53:32 +01:00
Christian Hesse
650c362ed9 netwatch-notify: support note in notification 2023-03-20 12:35:34 +01:00
Christian Hesse
56ae457d77 global-functions: $ScriptInstallUpdate: add proper version in user agent
This allows me to identify what RouterOS versions are run on devices
fetching my scripts, which may helps to decide what incompatible changes
to push.
2023-03-10 09:46:16 +01:00
Christian Hesse
e902e3fdd5 global-functions: $ScriptInstallUpdate: make sure not to match self 2023-03-07 22:26:01 +01:00
Christian Hesse
a832fd04ef rename scripts and add file extension ".rsc"
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00