1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-26 17:47:32 +02:00
openwrt-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