mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
This reverts commit 051826305e.
Reason for revert: This appears unnecessary as individual ifup events
are already being generated for main and alias interfaces. The logic
is also broken. It causes owsd to be reloaded every time there is ifup
event on alias interface, regardless of owsd configuration.
17 lines
281 B
Bash
17 lines
281 B
Bash
#!/bin/sh
|
|
|
|
[ "$ACTION" = ifup ] || exit 0
|
|
|
|
compare_owsd_iface() {
|
|
local interface
|
|
|
|
config_get interface $1 interface
|
|
|
|
if [ "$INTERFACE" == "$interface" ]; then
|
|
/etc/init.d/owsd reload
|
|
exit
|
|
fi
|
|
}
|
|
|
|
config_load owsd
|
|
config_foreach compare_owsd_iface "owsd-listen" "$INTERFACE"
|