Commit graph

2467 commits

Author SHA1 Message Date
Christian Hesse 16f04ee7ee global-functions: $CharacterReplace: use same condition in loop 2019-07-16 12:46:33 +02:00
Christian Hesse b1b53e3d0d global-functions: append system note in e-mail signature 2019-07-16 12:42:40 +02:00
Christian Hesse 12af69b443 update-gre-address: handle missing dynamic address 2019-07-10 11:45:20 +02:00
Christian Hesse 13f091e5ae gps-track: remove workaround 2019-07-09 11:19:41 +02:00
Christian Hesse 65c76b8409 capsman-rolling-upgrade: log with info, give identity 2019-07-08 15:49:00 +02:00
Christian Hesse 43d77cb62d lease-script: give hint about mis-usage 2019-07-05 23:38:44 +02:00
Christian Hesse 933db2ddc8 sms-action: give hint about mis-usage 2019-07-05 23:33:45 +02:00
Christian Hesse 15beb92347 ppp-on-up: give hint about mis-usage 2019-07-05 23:21:46 +02:00
Christian Hesse 894ee65675 ipv6-update: give hint about mis-usage 2019-07-05 16:09:49 +02:00
Christian Hesse 1272fe1cb1 update-gre-address: get values into arrays 2019-07-01 11:26:10 +02:00
Christian Hesse 5d0104f0a7 update-gre-address: update for latest routeros
With RouterOS 6.45 "remote-peers" was renamed to "active-peers":

*) ipsec - renamed "remote-peers" to "active-peers";
2019-07-01 10:21:17 +02:00
Christian Hesse 08ef63ddbd check-routeros-update: link a changelog that opens in browser
The old link was delivered with MIME type 'application/octet-stream',
browsers wanted to download it as file.
2019-07-01 09:44:50 +02:00
Christian Hesse 44dd4231cb bridge-port-to-default: handle special value 'dhcp-client'...
... which disables the bridge port, but enables a dhcp client.
2019-06-26 00:07:11 +02:00
Christian Hesse 9d1a59fd64 bridge-port-to-default: get bridge port values into array 2019-06-25 23:06:51 +02:00
Christian Hesse 2f22e06b9b gps-track: fix the condition for workaround
A null byte is always matched in regexp...
2019-06-25 14:32:25 +02:00
Christian Hesse e9cdf94785 add script 'certificate-renew-issued' 2019-06-24 13:39:45 +02:00
Christian Hesse 5101d57d52 backup: split off cloud-backup
Currently backup to MikroTik cloud is pretty unreliable and script can
not catch errors at runtime. Looks like this does not change any time
soon (Ticket#2019052022003204).

So let's just split off the cloud backup to make sure email backup works
as expected.
2019-06-14 15:13:41 +02:00
Christian Hesse 2252058202 daily-psk: add hint about device specific rule
I tricked myself several times... If a more device specific (or just
earlier matching) rule exists the daily PSK is not applied!
2019-06-13 08:14:03 +02:00
Christian Hesse 44836ccf04 mode-button-scheduler: beep for confirmation
But be silent if silent-boot is enabled.
2019-06-12 20:34:20 +02:00
Christian Hesse fd2901cd45 daily-psk.capsman: pick only first configuration 2019-05-24 14:26:32 +02:00
Christian Hesse a2e6362967 check-lte-firmware-upgrade: drop literal 'notification' 2019-05-23 12:19:01 +02:00
Christian Hesse 0c45102798 check-routeros-update: drop literal 'notification' 2019-05-23 12:19:01 +02:00
Christian Hesse cf3cd89398 check-certificates: get certificate values into array 2019-05-21 13:24:43 +02:00
Christian Hesse 6b603b1e0e gps-track: make workaround conditional
This is fixed in 6.45rc42.
2019-05-09 22:07:09 +02:00
Christian Hesse a1bad3c0aa email-backup: make sure to act on first cloud backup 2019-05-09 21:20:44 +02:00
Christian Hesse b7592f6b18 check-certificates: do not try to renew locally issued certificates 2019-05-02 11:59:43 +02:00
Christian Hesse 360d30bf2a check-certificates: give issuer info on locally issued certificates
Certificates issued locally do not have an 'issuer' property, but a
'ca' one. Looks like either of both is filled, so just concatenate.
2019-05-02 11:16:28 +02:00
Christian Hesse 42834e9de1 global-functions: $CertificateAvailable: fetch by CommonName
Now that we have a proper $UrlEncode function... Fetch certificates
by CommonName.

Also remove the PEM after import.
2019-04-30 16:52:53 +02:00
Christian Hesse 7f96e5c966 global-functions: add $WaitForFile, wait for file on fetch
The fetch command is asynchronous, the file is not guaranteed to be
available when command terminates.

I opened an issue at Mikrotik support (Ticket#2019041722004999),
their answer:

> You should perform a check in a loop.
> :delay until file exist
>
> That can happen also with any configuration not just files.

So add a function to wait for a file with given name.

I have not seen this with other configuration, though.
2019-04-30 16:52:53 +02:00
Christian Hesse 9aac873163 daily-psk-schedule: try to rotate ntp after five minutes uptime 2019-04-16 09:29:43 +02:00
Christian Hesse 5273efda21 check-certificates: make sure fingerprint is a string
This makes sure the condition below works for certificate templates,
which do not have a fingerprint.
2019-04-11 22:22:05 +02:00
Christian Hesse 20d7020fe3 check-certificates: do not send notification for templates 2019-04-11 10:19:46 +02:00
Christian Hesse ea94b7598e check-certificates: always return a string in $GetIssuerCN 2019-04-11 09:57:20 +02:00
Christian Hesse 58c25c8cca check-certificates: add url encoding for certificate download 2019-04-10 14:47:20 +02:00
Christian Hesse e562825bd9 check-certificates: try to fetch PEM and P12 file 2019-04-10 14:29:24 +02:00
Christian Hesse 5beebbe8e8 check-certificates: use full path...
... to make sure syntax does not break if package is not installed.
2019-04-10 14:29:24 +02:00
Christian Hesse c0b73d6e92 check-certificates: just change certificates, no loop 2019-04-10 13:59:38 +02:00
Christian Hesse b93d4d40bc drop deprecated mode= for fetch 2019-04-09 18:01:44 +02:00
Christian Hesse 2e10a80f95 sms-forward: group messages for same sender 2019-04-05 09:24:04 +02:00
Christian Hesse 15d3e9ea7b global-config: change duplicate word from daily psk 2019-04-05 07:56:50 +02:00
Christian Hesse 50279efbdb ipv6-update: fix with prefix containing section(s) of zeros 2019-04-04 22:37:13 +02:00
Christian Hesse 228ec7106b daily-psk: use the template system 2019-04-03 22:51:15 +02:00
Christian Hesse b35c0b8a6f always write warnings and errors to log 2019-04-03 21:30:43 +02:00
Christian Hesse 27b2fffaaf script-updates: clear variable after use 2019-04-03 13:14:09 +02:00
Christian Hesse ea73505ecc script-updates: send global-config changes notification just once 2019-04-03 08:30:28 +02:00
Christian Hesse 7b1c275cc2 script-updates: add option to ignore global-config changes 2019-04-02 08:48:35 +02:00
Christian Hesse 594aef2aab check-certificates: support multiple passphrases 2019-04-01 22:45:38 +02:00
Christian Hesse 40201ac1ea script-updates: add changelog for global configuration 2019-04-01 12:39:37 +02:00
Christian Hesse 6388a97f31 README: add hint on features for specific scripts 2019-04-01 10:42:57 +02:00
Christian Hesse 53b3d71f57 README: drop hint on old branch
Now that release channel 'long-term' is at 6.43.x...
2019-04-01 10:42:57 +02:00