ucitrack: fix bug for exec with params 3778/head
authorjjm2473 <1129525450@qq.com>
Sun, 22 Mar 2020 16:58:46 +0000 (00:58 +0800)
committerjjm2473 <1129525450@qq.com>
Sun, 22 Mar 2020 17:05:31 +0000 (01:05 +0800)
In file `/etc/config/ucitrack`
```
config fstab
        option exec '/sbin/block mount'
```
`/sbin/block mount` never be called after fstab changed.

Signed-off-by: jjm2473 <1129525450@qq.com>
modules/luci-base/root/etc/init.d/ucitrack

index 27d34fa2971995d96652567efb80db71d9819c7b..c7ceb32905babed000110f7673633486885a8d85 100755 (executable)
@@ -35,7 +35,7 @@ register_trigger() {
                        ;;
                        *)
                                logger -t "ucitrack" "Setting up non-init /etc/config/$config reload handler: $exec"
-                               procd_add_config_trigger "config.change" "$config" "$exec"
+                               procd_add_config_trigger "config.change" "$config" $exec
                        ;;
                esac
        fi