* revised hotplug script * remove wget package dependency * support uclient-fetch or wget with ssl support * documentation update Signed-off-by: Dirk Brenken <dev@brenken.org>
20 lines
410 B
Bash
20 lines
410 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
adb_pid="${$}"
|
|
adb_helper="/usr/bin/adblock-helper.sh"
|
|
adb_pidfile="/var/run/adblock.pid"
|
|
|
|
if [ -f "${adb_pidfile}" ] || [ "${ACTION}" != "ifup" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
. "${adb_helper}"
|
|
f_envload
|
|
|
|
if [ "${INTERFACE}" = "${adb_wanif4}" ] || [ "${INTERFACE}" = "${adb_wanif6}" ]
|
|
then
|
|
/etc/init.d/adblock start
|
|
f_log "adblock service started due to '${ACTION}' of '${INTERFACE}' interface"
|
|
fi
|