openwrt-feed-routing/oonf-init-scripts/files/oonf_hotplug.sh
Philipp Borgers 8b767e9382 fix quoting of daemon name
The current quoting did not allow substitution and resulted in log messages with
the prefix "${DAEMON}[hotplug]".
2016-02-12 18:59:43 +01:00

11 lines
229 B
Bash
Executable File

#!/bin/sh
case "${ACTION}" in
ifup)
. /etc/rc.common /etc/init.d/${DAEMON} enabled && {
logger -t "${DAEMON}[hotplug]" -p daemon.info 'reloading configuration'
. /etc/rc.common /etc/init.d/${DAEMON} reload
}
;;
esac