1
0
This repository has been archived on 2025-01-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
alacn1_pace_v5471/squashfs-root/etc/bewan/scripts/device-detection
Anderson Luiz Alves 0464e230c1 stock 103961
2017-07-30 16:48:04 -03:00

14 lines
340 B
Bash
Executable File

#!/bin/sh
# Script call by lanarpd daemon when a device has appeared in or disappeared from the ARP table
files="$(find /etc/bewan/detect.d -follow -type f 2>/dev/null | sort)"
[ "$files" = '' ] && return
. /etc/bewan/init.d/setparam
base_enter_critical 'onchange'
for script in $files; do
. $script
done
base_exit_critical 'onchange'