ucitrack: fix bug for exec with params
authorjjm2473 <1129525450@qq.com>
Sun, 22 Mar 2020 16:58:46 +0000 (00:58 +0800)
committerJo-Philipp Wich <jo@mein.io>
Sun, 19 Jul 2020 17:48:13 +0000 (19:48 +0200)
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>
(cherry picked from commit 97780a9ce158097e17ed7842ae01e765d5da4955)

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