13 lines
170 B
Bash
Executable file
13 lines
170 B
Bash
Executable file
#!/bin/bash
|
|
|
|
function ifstatus(){
|
|
echo $1
|
|
echo $2
|
|
}
|
|
|
|
ip monitor address | {
|
|
while read -r event; do
|
|
# echo hi ${event};
|
|
ifstatus "${1}" "${event}"
|
|
done;
|
|
}
|