aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.local
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-11-25 16:39:23 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-11-25 16:39:23 +0100
commitb70d4f7666e4a2ad7c447b84c9faa1f42374158a (patch)
tree40790c14ed3a88e0bc4ae25b6409f74908a4852f /collect-wireless-mac.local
parent73a3e58c8f561795c3ba68017e0b009e443e009b (diff)
collect-wireless-mac: move code into condition
Diffstat (limited to 'collect-wireless-mac.local')
-rw-r--r--collect-wireless-mac.local12
1 files changed, 6 insertions, 6 deletions
diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local
index a28e2ee..882741f 100644
--- a/collect-wireless-mac.local
+++ b/collect-wireless-mac.local
@@ -30,12 +30,12 @@ $ScriptLock "collect-wireless-mac.local";
:if ([ :len $Lease ] > 0) do={
:set HostName [ / ip dhcp-server lease get $Lease host-name ];
:set Address [ / ip dhcp-server lease get $Lease address ];
- }
- :if ([ :len $HostName ] = 0) do={
- :set HostName "no hostname";
- }
- :if ([ :len $Address ] = 0) do={
- :set Address "no address";
+ :if ([ :len $HostName ] = 0) do={
+ :set HostName "no hostname";
+ }
+ :if ([ :len $Address ] = 0) do={
+ :set Address "no address";
+ }
}
:local RegEntry [ / interface wireless registration-table find where mac-address=$Mac ];
:local Interface [ / interface wireless registration-table get $RegEntry interface ];