packages: Use OpenWrt ntp vendor pool in default configs. (Cleaned whitespace too.)
[openwrt/svn-archive/archive.git] / net / ntpclient / files / ntpclient.hotplug
index a3ce8b859ab2e36282ffa99247fe60455cab899e..2abb0361fc7071b6f5d316f01d67e33df86641a5 100644 (file)
@@ -13,10 +13,10 @@ config_cb() {
                ntpclient)
                        config_get hostname     $cfg hostname
                        config_get port         $cfg port
-                       config_get count        $cfg count                      
+                       config_get count        $cfg count
 
                        [ "$DONE" = "1" ] && exit 0
-                       ps | grep 'bin/[n]tpclient' >&- || {
+                       ps | grep 'bin/[n]tpclient' >&- || {
                                route -n 2>&- | grep '^0.0.0.0' >&- && {
                                        /usr/sbin/ntpclient -c ${count:-1} -s -h $hostname -p ${port:-123} 2>&- >&- && DONE=1
                                }