openwrtv3/package
Jo-Philipp Wich 3c4165a305 enable ntpd server for busybox
hi

Another version, in this one the enable_server option is in the timeserver ntp part of the "system" config file
You can patch trunk and bacfire (tested both)
You can put busybox ntpd in client mode (if you put server), in client & server (by putting enable_server to 1, ntpd listen to udp 123), and also in server mode only (if you didn't put any servers in the config and still put enable_server 1,  ntpd will answer with the time of the router)

I've replaced "config_foreach getpeers timeserver" with "config_get peers ntp server" because we want ntp timeserver, not random ones (to pre-answer if someone want to say that it's intrusive ...)

 Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

Le 27/03/2012 20:41, Etienne Champetier a écrit :
> I've now tested my trunk patch and it works fine
> But I still can't find were $PROG is defined (is this a mistake, or some sort of built in variable???)
> (I've made some grep and nothing)
>
> Le 23/03/2012 02:19, Philip Prindeville a écrit :
>> Maybe:
>>
>> [ -n "$PROG" -a -x "$PROG" ] || return 1
>>
>> instead?
>>
>>
>> On 3/22/12 4:34 PM, Etienne Champetier wrote:
>>> Hi
>>>
>>> The 2 attached patchs (trunk & bacfire) add busybox ntpd enable_server option, as busybox ntpd server is compiled by default.
>>> We only need 1 client/server daemon (olipro patch was launching 2 daemons)
>>> I've fully tested the bacfire patch, and as i don't have a running openwrt trunk i'm not sure for the trunk patch (i'm sure about my modifications, but i'm not sure about "[ -x $PROG ] || return 1", as "$PROG" isn't defined ?!)
>>>
>>> Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
>>>
>>>
>>> Le 16/01/2012 01:57, Philip Prindeville a écrit :
>>>> On 1/14/12 11:37 AM, Olipro wrote:
>>>>> On Saturday 14 Jan 2012 02:45:59 Philip Prindeville wrote:
>>>>>> Don't we already have a 'disabled' option?  Now we're adding an
>>>>>> 'enable_server' option?
>>>>>>
>>>>>> That seems confusing for no useful reason.
>>>>>>
>>>>> have you bothered to read what I originally wrote? your response would make
>>>>> me inclined to believe that you didn't.
>>>>>
>>>>> currently the ntpd initscript only runs it as a CLIENT - this patch enables
>>>>> you to have one instance running as a client and another as a SERVER that
>>>>> other hosts can synchronise with.
>>>>>
>>>>> Or perhaps I'm misunderstanding, what would you propose for allowing the
>>>>> built-in busybox ntpd to be utilised as a server? a separate init script
>>>>> entirely perhaps?
>>>> Or separate config sections... instead of 'config ntp' have 'config ntp-server' and 'config ntp-client'.
>>>>
>>>> -Philip
>>>>
>>>>
>>>> _______________________________________________
>>>> openwrt-devel mailing list
>>>> openwrt-devel@lists.openwrt.org
>>>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

SVN-Revision: 31374
2012-04-20 15:05:38 +00:00
..
6in4 6in4: add netifd support 2012-03-19 21:10:04 +00:00
6to4 6to4: fix interface error handling 2012-03-19 21:09:57 +00:00
acx package: acx: mark as broken for 3.2 2011-11-09 21:16:45 +00:00
acx-mac80211 acx-mac80211: update to 20111030 2011-11-10 15:31:37 +00:00
admswconfig admswconfig: reset interface after applying config 2011-01-27 21:49:50 +00:00
apex only support EABI on ARM targets 2011-03-07 12:59:19 +00:00
ar7-atm add support for 2.6.37, thanks Wipster! 2011-02-18 12:52:04 +00:00
arptables artables ebtables iptables: Moved *tables to Firewall submenu of the Network package group because that's where all the feeds packages for firewalls now are. 2011-03-12 01:24:18 +00:00
avila-wdt massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950 2010-07-12 14:06:13 +00:00
base-files enable ntpd server for busybox 2012-04-20 15:05:38 +00:00
base-files-network base-files: split service related functions off to /lib/functions/service.sh 2012-03-20 14:29:50 +00:00
block-mount block-mount: add missing chunk of previous commit 2012-03-21 02:29:47 +00:00
bridge-utils Update bridge-utils to the last upstream version 1.5. 2012-02-14 19:07:09 +00:00
broadcom-diag broadcom-diag: add missing brackets breakign the detection logic (#10836) 2012-02-17 09:04:23 +00:00
broadcom-wl broadcom-wl: remove an erroneous BUG() call in the glue driver 2012-02-24 13:36:46 +00:00
busybox busybox 1.19.4 update patch 2012-03-18 19:46:52 +00:00
button-hotplug button-hotplug: prevent build on 2.6.30 2012-04-20 13:25:17 +00:00
comgt comgt: Add scripts to comgt to retrieve the IMSI and CNUM to identify the SIM card. 2011-11-30 14:16:44 +00:00
compcache compcache does not build on 2.6.38+ 2011-06-04 13:35:48 +00:00
crda crda: update to 1.1.2 2012-04-02 16:25:40 +00:00
cyassl cyassl: use patch-libtool pkg fixup 2012-01-08 15:39:42 +00:00
dnsmasq dnsmasq: configure dnsmasq via flat config file and not command-line args 2012-04-02 22:31:21 +00:00
dropbear dropbear: patch possible use after free by authenticated remote users with active command restrictions (CVE-2012-0920) 2012-02-25 12:40:46 +00:00
e2fsprogs update e2fsprogs 2012-02-14 19:07:07 +00:00
ead ead: fixup some AC_DEFINE() invocations that will make recent automak bail 2010-12-13 01:47:35 +00:00
ebtables ebtales: update to v2.0.10-4 2012-01-30 14:02:10 +00:00
ep80579-drivers ep80579 depend on their corresponding subtarget 2010-10-30 22:35:46 +00:00
fbtest fbtest utility 2012-02-08 10:20:13 +00:00
fconfig Various Makefile cleanup. 2009-06-13 16:47:22 +00:00
firewall firewall: revert processing order of redirects and rules, ensures that rules can be used to filter before redirects are reached 2012-03-18 23:34:06 +00:00
fuse package/fuse: update to version 2.8.5, refresh patches 2010-12-08 20:15:10 +00:00
gdb gdb: use an updated 6.8a tarball 2012-02-14 20:13:28 +00:00
goldfish-qemu cleanup Makefiles (#7212) 2010-04-23 11:27:29 +00:00
gpio-button-hotplug gpio-button-hotplug: don't build on 2.6.30 2012-04-20 13:25:20 +00:00
gpioctl get rid of $Id$ - it has never helped us and it has broken too many patches ;) 2009-04-17 14:09:46 +00:00
grub grub: fix build with automake v1.11.3 (#11228) 2012-04-04 18:10:15 +00:00
hostap-driver wpa_supplicant: use wext driver for hostap and madwifi 2012-03-27 10:44:26 +00:00
hostap-utils get rid of $Id$ - it has never helped us and it has broken too many patches ;) 2009-04-17 14:09:46 +00:00
hostapd wpa_supplicant: make key_mgmt default to NONE 2012-03-29 16:30:13 +00:00
hotplug2 base-files: process platform hotplug calls in the early launch of hotplug2 to avoid having crda calls get stuck at boot time (fixes #10350, #10354) 2011-11-05 17:16:01 +00:00
i2c-gpio-custom massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950 2010-07-12 14:06:13 +00:00
ifenslave remove obsolete kernel dependencies and version checks 2010-06-26 20:44:28 +00:00
iproute2 iproute2: Add hotplug script to add slave devices to TEQL master 2012-04-16 15:04:42 +00:00
iptables iptables: make it possible to dynamically configure built-in statically linked extensions, fold -mod-conntrack and -mod-nat into the default package. saves about 8k on an ar71xx default squashfs 2012-02-22 01:47:48 +00:00
iw iw: sync nl80211.h update with compat-wireless 2012-04-16 21:13:18 +00:00
iwcap iwcap: fix reversed umask 2012-02-27 23:08:15 +00:00
iwinfo iwinfo: properly cast nl80211 mBm signal levels to reported dBm values (#11161) 2012-03-21 19:47:16 +00:00
ixp4xx-microcode Various Makefile cleanup. 2009-06-13 16:47:22 +00:00
kernel disable xfs on avr32 2012-04-15 16:22:59 +00:00
kexec-tools kexec-tools: update to 2.0.3 (fixes #9846) 2012-02-13 12:36:36 +00:00
libbsd libbsd: do not build when using uclibc 2011-06-16 14:34:47 +00:00
libipfix ipfix: sync changes from openimp 2009-12-19 22:19:42 +00:00
libjson-c change PKG_FIXUP:=libtool to PKG_FIXUP:=autoreconf 2011-03-06 21:42:48 +00:00
libnl libnl: update to version 2.0 (patch by Philip Prindeville) 2011-02-13 03:56:12 +00:00
libnl-tiny libnl-tiny: port upstream bugfix 8ee16e6688657886f591f0841cb8e892743ecf2a from libnl, fixes error on hostapd interface initialization 2012-04-01 05:32:32 +00:00
libpcap libpcap: explicitely disable libnl support to prevent different build results depending on the environment (#11239) 2012-04-08 15:11:12 +00:00
libreadline libreadline: install *.so symlinks as well (#4872) 2010-08-27 20:13:17 +00:00
librpc librpc: do not build if external or native toolchains are used 2011-12-08 16:49:45 +00:00
libtool libtool: remove patches, they don't apply to libltdl 2010-12-18 18:13:12 +00:00
libubox libubox: update to latest version, fix some endian issues 2011-12-06 15:59:53 +00:00
linux-atm package/linux-atm: use new service wrappers 2011-11-08 22:48:00 +00:00
ltq-dsl fix for 3.2.9 2012-03-25 08:50:42 +00:00
ltq-dsl-app fix bad variable name inside Makefile 2012-04-10 15:20:23 +00:00
ltq-ifxos wrong md5sum in ltq-ifxos 2011-07-10 10:40:37 +00:00
ltq-kpi2udp * adss in-kernel udp redirect plugin for lantiq voice optimisation 2011-02-07 21:48:55 +00:00
ltq-tapi ltq-tapi/vmmc were build on none lantiq targets due to bad builddepends of pjsip 2011-07-06 19:02:27 +00:00
ltq-tapidemo replace all references to xway with danube 2011-07-07 18:20:37 +00:00
ltq-vmmc ltq-vmmc: should be available for falcon and danube only 2011-11-03 15:16:25 +00:00
lua lua: remove posix from Lua core, almost nothing uses it - saves 9k compressed 2011-05-04 14:51:06 +00:00
mac80211 mac80211: update to 2012-04-17, adds some build fixes and juhosg's ar9380 tx power fix 2012-04-19 18:32:39 +00:00
maccalc package/maccalc: don't expect to get all data in one read 2011-09-21 11:47:35 +00:00
madwifi madwifi: fix compile issues with linux 3.1/3.2 2012-03-29 12:52:16 +00:00
mkelfimage move mkelfimage from tools/ to package/ as it needs a proper i386 toolchain - make the package hidden so that it is automatically built without having to be selected 2011-07-02 06:49:36 +00:00
mmc_over_gpio mmc_over_gpio: mark /etc/config/mmc_over_gpio as conffile 2010-10-05 17:21:03 +00:00
mountd mountd: correctly handle poll() timeout case, solves possible 100% CPU load when idle (#7293) 2011-07-17 11:58:05 +00:00
mtd mtd: define MTDREFRESH if not defined (external kernel) 2012-02-06 17:15:40 +00:00
ncurses ncurses: enable C++ bindings (#9442) 2011-05-22 16:53:09 +00:00
netifd ppp: move ppp-{up,down} from the netifd package to pppd 2012-04-17 21:35:13 +00:00
nvram add maintainer information 2010-09-30 10:48:37 +00:00
ocf-crypto-headers ocf-linux: version bump to 20110720 2011-07-24 14:17:58 +00:00
om-watchdog package: add om-watchdog package 2012-01-04 17:30:39 +00:00
openssl openssl: update to v1.0.1a (CVE-2012-2110) 2012-04-19 14:05:53 +00:00
opkg include, base-files, opkg: introduce version configuration to override the embedded version info of generated images - Introduce new Kconfig symbols VERSION_DIST, VERSION_NICK, VERSION_NUMBER and VERSION_REPO to specify distribution, release name, version and repository for a given build - Introduce include/version.mk to provide common helpers for packages dealing with versions - Make opkg use version.mk to populate the opkg.conf template - Make base-files use version.mk to populate /etc/openwrt_version, /etc/openwrt_release and /etc/banner 2012-04-12 17:31:16 +00:00
owsip add a simple sip client 2012-02-14 15:05:52 +00:00
pjsip Pulse dialing support into pjsip. 2012-03-25 08:51:16 +00:00
ppp ppp: move ppp-{up,down} from the netifd package to pppd 2012-04-17 21:35:13 +00:00
pptp pptp: remove support for underlying ipproto, it is adviced since a while that pptp should be declared as separate interface alognside wan - in this configuration the ipproto will cause stray udhcpc errors due to not existent interfaces, so remove it 2012-01-08 15:41:34 +00:00
ps3-utils ps3-utils git repository fix 2012-03-18 21:08:39 +00:00
pwm-gpio-custom pwm-gpio-custom: fix compile on linux 2.6.31 2010-08-19 12:49:42 +00:00
px5g add maintainer information 2010-09-30 10:48:37 +00:00
qos-scripts qos-scripts: only use the lower 8 bits for firewall marks, allows coexistence with other programs like nodogsplash - patch by Tobias Wolf (#10096) 2011-11-03 19:11:01 +00:00
rbcfg package/rbcfg: new tool for modifying boot configuration on the RB4xx boards 2011-06-29 09:40:54 +00:00
redboot-ar231x redboot-ar231x: mark as broken, the ecos host tool crap needs some rework for tcl on some systems 2011-03-25 00:55:25 +00:00
relayd package/relayd: use new service wrappers 2011-11-08 22:48:11 +00:00
resolveip resolveip: fix whitespace 2011-07-17 22:47:56 +00:00
robocfg get rid of $Id$ - it has never helped us and it has broken too many patches ;) 2009-04-17 14:09:46 +00:00
rotary-gpio-custom Add package rotary-gpio-custom 2010-07-22 11:32:27 +00:00
rtc-rv5c386a rtc-rv5c386a: add support for kernel 3.0 2011-08-04 20:06:17 +00:00
sierra-directip sierra-directip: disable build with kernels older than 2.6.32 included 2012-04-16 11:38:38 +00:00
siit massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950 2010-07-12 14:06:13 +00:00
soloscli soloscli: Add script to syslog ADSL line stats 2012-03-29 09:01:33 +00:00
spi-ks8995 massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950 2010-07-12 14:06:13 +00:00
spidev_test remove obsolete kernel dependencies and version checks 2010-06-26 20:44:28 +00:00
swconfig swconfig: fix off-by-one error, causing segfaults on gcc 4.6+ (fixes #9765) 2012-02-12 19:27:01 +00:00
switch switch: the hardware must be up while configuring Since the removal of the interface coldplug hack the timing changed in such a way that eth0 is not up during switch setup, leading to an inaccesible device. Bring up the switch interface before configuring it to mitigate the problem. 2012-03-13 21:15:41 +00:00
trelay add trelay, a trivial ethernet relay which allows pseudo-bridging ad-hoc or client mode devices over vlans to other hosts 2012-03-28 11:02:38 +00:00
uboot-ar71xx uboot-ar71xx: add a dependency on the ar71xx target 2011-04-15 15:41:49 +00:00
uboot-envtools package/uboot-envtools: make fw_setenv symlink optional 2011-11-01 09:23:29 +00:00
uboot-kirkwood Fixed support for Iomega 2010-10-27 21:24:06 +00:00
uboot-lantiq adds ARV4519PW/ARV7519PW 2012-03-25 08:51:13 +00:00
uboot-omap4 add support for OMAP4 based boards, starting with the PandaBoard 2012-01-14 23:02:56 +00:00
uboot-omap35xx Change u-boot console device to reflect change in omap serial driver 2011-08-19 12:01:30 +00:00
uboot-xburst uboot-{kirkwood,xburst}: Fix typo in U-Boot image name, thanks framer99 (#8112) 2010-10-21 08:54:36 +00:00
ubus ubus: update to the latest version 2011-12-06 16:00:00 +00:00
uci uci: update to latest version, fixes return code of the cli on various failures 2012-03-28 11:02:30 +00:00
udev udev: Provide define to enable compilation with kernel 2.6.32.33 headers 2011-10-14 11:42:40 +00:00
uhttpd uhttpd: reorder compiler flags to fix native build on Ubuntu 11.x 2012-03-13 20:41:31 +00:00
usbreset add usbreset - a small simple utility to send port rests to selected usb devices (#10394) 2011-12-25 13:59:17 +00:00
util-linux-ng util-linux(-ng): revert r31183, r31178 - the update introduced several regressions which need to be worked out first 2012-04-05 12:00:20 +00:00
vsc73x5-ucode vsc73x5-ucode: use the mirrored ucode files from my server to replace an 127 MB download with a 14k one 2010-04-30 16:11:31 +00:00
w1-gpio-custom massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950 2010-07-12 14:06:13 +00:00
wireless-tools wireless-tools: remove some more unnecessary stuff from iwconfig 2011-03-18 03:41:22 +00:00
wprobe fix wprobe build for arm on 3.2 2012-01-30 14:02:13 +00:00
wrt55agv2-spidevs wrt55agv2-spidevs: fix build with recent kernel 2011-10-22 10:40:45 +00:00
xfsprogs xfsprogs: disable po files building 2012-04-20 13:25:08 +00:00
yamonenv package/yamonenv: refresh patches 2010-03-26 14:29:32 +00:00
zlib zlib: parallel build has been reported to break this package, disable it (#10948) 2012-02-10 16:13:37 +00:00
Makefile make sure that base-files is installed last, this allows per-target base-file overlays to work correctly 2011-06-08 19:38:25 +00:00