diff options
Diffstat (limited to 'collect-wireless-mac.template')
-rw-r--r-- | collect-wireless-mac.template | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template index 9e06a88..eba06ad 100644 --- a/collect-wireless-mac.template +++ b/collect-wireless-mac.template @@ -31,12 +31,12 @@ $ScriptLock "collect-wireless-mac%TEMPL%"; :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 [ / %PATH% registration-table find where mac-address=$Mac ]; :local Interface [ / %PATH% registration-table get $RegEntry interface ]; |