dropbear: register a config.change trigger
authorJohn Crispin <john@openwrt.org>
Thu, 11 Jul 2013 17:00:40 +0000 (17:00 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 11 Jul 2013 17:00:40 +0000 (17:00 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37245

package/network/services/dropbear/files/dropbear.init

index 66ed8b9bfbe624112d65906fcfbe4538302df14b..9390833d30a6ddc484f83cce617f0991f306abaf 100755 (executable)
@@ -121,6 +121,11 @@ start_service()
        config_foreach dropbear_instance dropbear
 }
 
+service_triggers()
+{
+       procd_add_config_trigger "dropbear" "/etc/init.d/dropbear" "restart"
+}
+
 killclients()
 {
        local ignore=''