1
0

ntpd-hotplug 265 B

123456789101112
  1. #!/bin/sh
  2. . /usr/share/libubox/jshn.sh
  3. addenv="$( env | while read line; do echo "json_add_string \"\" \"$line\";"; done )"
  4. json_init
  5. json_add_array env
  6. json_add_string "" "ACTION=$1"
  7. eval "$addenv"
  8. json_close_array env
  9. ubus call hotplug.ntp call "$(json_dump)"