projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
busybox: sysntpd: make use of new ubus hotplug.ntp object
[openwrt/openwrt.git]
/
package
/
utils
/
busybox
/
files
/
ntpd-hotplug
1
#!/bin/sh
2
3
.
/
usr
/
shar
e
/
libubox
/
jshn.sh
4
5
addenv
=
"$( env | while read line; do echo "
json_add_string
\"\" \"
$line
\"
;
"; done )"
6
json_init
7
json_add_array env
8
json_add_string
""
"ACTION=
$1
"
9
eval
"
$addenv
"
10
json_close_array env
11
12
ubus call hotplug.ntp call
"$(json_dump)"