aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/config
Commit message (Collapse)AuthorAgeFilesLines
* enable ntpd server for busyboxJo-Philipp Wich2012-04-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* base-files, target: assign name to system timeserver section, makes it ↵Jo-Philipp Wich2011-11-101-1/+1
| | | | | | easier to set servers on the cli SVN-Revision: 28933
* base-files: remove rdate integration, add busybox ntpd init script and ↵Jo-Philipp Wich2011-10-272-17/+5
| | | | | | server list in /etc/config/system The rdate applet proved to be too unreliable to obtain the current time on boot: - public time servers are rare and often unreachable or overloaded - rdate does not daemonize, it needs a network connection the moment it is started, leading to race conditions - the /etc/config/timeserver configuration is overly complex and there is no reliable way to disable rdate invocations - the time protocol as specified in RFC 868 is considered obsolete This commit adds an init script /etc/init.d/sysntpd which starts and stops the busybox ntpd accordingly. The builtin ntpd can be disabled by either disabling the init script, removing the symlink to busybox or by clearing the timeserver list in /etc/config/system. SVN-Revision: 28612
* base-files: remove ptbtime3 rdate server, its deadJo-Philipp Wich2011-02-121-3/+0
| | | | SVN-Revision: 25479
* base-files: update rdate server listJo-Philipp Wich2011-02-121-9/+3
| | | | SVN-Revision: 25478
* base-files (#7316) - improve rdate reliability - make rdate config more ntp ↵Jo-Philipp Wich2010-05-172-7/+25
| | | | | | like - move time server list to /etc/config/timeserver - bump package revision SVN-Revision: 21495
* base-files: add a hotplug handler for rdateJo-Philipp Wich2010-03-271-0/+9
| | | | SVN-Revision: 20518
* add the block-mount package by Daniel Dickinson (cshore), replacing existing ↵Felix Fietkau2010-02-261-10/+0
| | | | | | automount functionality SVN-Revision: 19877
* system now knows which timezone it is inJohn Crispin2008-06-111-0/+1
| | | | SVN-Revision: 11445
* 6tunnel: move init/config files to the right placeGabor Juhos2007-10-271-6/+0
| | | | SVN-Revision: 9453
* Turn off stp by default, thanks ejkaFlorian Fainelli2007-10-181-1/+0
| | | | SVN-Revision: 9345
* Turn on stp by default for bridges (#2476)Florian Fainelli2007-10-181-0/+1
| | | | SVN-Revision: 9343
* Add 6tunnel configuration for tunnel brokers based configuration (not ↵Florian Fainelli2007-10-111-0/+6
| | | | | | SiXXS), disabled by default SVN-Revision: 9259
* base-files: Added support for swap configuration in /etc/config/fstabRod Whitby2007-09-221-0/+4
| | | | SVN-Revision: 8947
* Added support for /etc/default/fstab - a means of automatically mounting ↵Rod Whitby2007-09-211-0/+6
| | | | | | devices on boot. SVN-Revision: 8916
* bridge the lan interface by defaultFelix Fietkau2007-05-261-0/+1
| | | | SVN-Revision: 7349
* add new config option for the hostname in /etc/config/system (fixes #1302, ↵Felix Fietkau2007-03-061-0/+2
| | | | | | #1438) SVN-Revision: 6532
* rename default/ to files/Felix Fietkau2006-11-221-0/+13
SVN-Revision: 5622