Jonas Gorski
80650c9475
base-files: wait for wifi modules to settle
...
On slower devices wifi drivers might take too long for detecting
devices, resulting in the wifi detect call not seeing them.
This was observed on a bcm6348 with bcm4318 wifi. Adding a one second
pause was enough for b43 to expose the device.
SVN-Revision: 31639
2012-05-06 21:25:42 +00:00
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
Felix Fietkau
5744d736f2
base-files: remove old coldplugging hacks that are no longer necessary since the new main hotplug2 instance calls udevtrigger as well
...
SVN-Revision: 30916
2012-03-13 09:18:30 +00:00
Felix Fietkau
a963a80a38
base-files: the initial hotplug2 instance sometimes misses a few relevant events, e.g. during module load. rerun udevtrigger for the final hotplug2 instance to fix this
...
SVN-Revision: 29862
2012-01-22 21:14:22 +00:00
Jo-Philipp Wich
9fd3886365
base-files: do not pass --set-worker /lib/hotplug2/worker_fork.so to hotplug2 anymore, its statically linked - patch by Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
...
SVN-Revision: 29806
2012-01-19 15:37:47 +00:00
Gabor Juhos
ff89832fdb
package/base-files: add support for the switch LED trigger
...
SVN-Revision: 29629
2011-12-31 15:02:35 +00:00
Gabor Juhos
3f85c52a3a
package/base-files: use case statement in led init script
...
SVN-Revision: 29628
2011-12-31 15:02:32 +00:00
Jo-Philipp Wich
33443d2a8c
base-files: now that we have date -k, adjust the kernel timezone after setting up TZ and localtime
...
SVN-Revision: 29204
2011-11-17 01:18:22 +00:00
Nicolas Thill
93886bc776
package/base-files: use new service wrapper
...
SVN-Revision: 28835
2011-11-07 22:58:34 +00:00
Felix Fietkau
44ba13b578
base-files: load modules early, run wifi detect afterwards and only then process uci defaults
...
this allows uci-defaults scripts to override wifi settings
SVN-Revision: 28733
2011-11-03 20:02:25 +00:00
Jo-Philipp Wich
272d95f0f1
base-files: remove rdate integration, add busybox ntpd init script and 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
2011-10-27 00:21:53 +00:00
Felix Fietkau
c2b5767572
base-files: move network related scripts to a separate package to make the transition to netifd easier
...
SVN-Revision: 28495
2011-10-20 15:01:06 +00:00
Jo-Philipp Wich
bfbbe5893f
base-files: use "zonename" system option to symlink /etc/localtime via /tmp/localtime to /usr/share/zoneinfo for glibc and eglibc
...
SVN-Revision: 28306
2011-09-26 02:28:04 +00:00
Jo-Philipp Wich
32731a72c2
base-files: pass conloglevel to syslogd ( #9463 , #9647 )
...
SVN-Revision: 27400
2011-07-03 15:11:58 +00:00
Felix Fietkau
9a227d88dd
base-files: do not write to /etc/config/wireless at boot time unless a new interface was found
...
eliminates unnecessary flash write cycles at every boot
patch by Peter Wagner (tripolar)
SVN-Revision: 27127
2011-06-07 17:00:43 +00:00
Jo-Philipp Wich
ba1c1e9016
base-files: retrigger usb coldplug after module loading, solves usb_modeswitch on boot and possibly others ( #9352 )
...
SVN-Revision: 26848
2011-05-08 10:25:58 +00:00
Vasilis Tsiligiannis
980190367c
base-files: Use -h instead of deprecated -L for symlink check
...
SVN-Revision: 26485
2011-04-05 15:09:43 +00:00
Vasilis Tsiligiannis
48465d3d63
base-files: fix minor problem in init.d/boot
...
The script tests for the existance of /dev/root with test -e which fails if
/dev/root is a dangling symlink making the call to ln fail.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
SVN-Revision: 26483
2011-04-05 15:09:32 +00:00
Vasilis Tsiligiannis
1b66204ccd
base-files: Autodetect newly added wireless hardware
...
SVN-Revision: 26166
2011-03-15 00:44:15 +00:00
Florian Fainelli
d7fe921089
base-files: support port_state in led config ( #6763 )
...
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com>
SVN-Revision: 25172
2011-01-27 21:49:46 +00:00
Gabor Juhos
63c786dde7
base-files: add support for the usbdev LED trigger
...
SVN-Revision: 24647
2010-12-17 17:10:14 +00:00
Jo-Philipp Wich
c0820d3261
base-files: respect .auto option when running coldplug_interface_*() hooks on boot
...
SVN-Revision: 21588
2010-05-27 23:04:56 +00:00
Jo-Philipp Wich
6a3cbba92e
base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
...
SVN-Revision: 21389
2010-05-06 19:50:22 +00:00
Vasilis Tsiligiannis
a481cafb55
base-files: Remove redundant stopping of watchdog
...
busybox watchdog applet should stop the watchdog before shutting down
SVN-Revision: 21341
2010-05-03 10:56:58 +00:00
Florian Fainelli
20da5f495f
add stop() to watchdog init script, patch from Yury Polyanskiy
...
SVN-Revision: 21334
2010-05-03 09:05:35 +00:00
Florian Fainelli
1847940688
Fix bug in foregrounding in /etc/init.d/rcS
...
Not using the config_xxx functions correctly. Amended.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20928
2010-04-16 18:14:08 +00:00
Florian Fainelli
eafa2ec962
option to allow boot to run to completion before starting shell
...
Setting the system variable "foreground" to yes causes the system to run
the init scripts in series and wait for completion.
This is useful if (a) you don't want the user getting into the console
until the system is initialized, or (b) you have things going on in your
scripts that require strict ordering (and no possible race conditions).
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20841
2010-04-13 19:57:25 +00:00
Jo-Philipp Wich
10c00a6368
base-files: also regenerate wifi config if existing config contains only whitespace
...
SVN-Revision: 20669
2010-04-03 13:31:59 +00:00
Felix Fietkau
3ab30b486f
base-files: reload switch settings on /etc/init.d/network start as well
...
SVN-Revision: 20232
2010-03-15 14:02:49 +00:00
Felix Fietkau
bfeb96126d
add the block-mount package by Daniel Dickinson (cshore), replacing existing automount functionality
...
SVN-Revision: 19877
2010-02-26 22:45:39 +00:00
Lars-Peter Clausen
275b0d8cd4
Don't do lazy unmounting of filessystems at reboot/poweroff. It is unneeded and could couse a broken filesystem if unmounting takes to long. Thanks to Peter Wagner
...
SVN-Revision: 19568
2010-02-09 18:07:36 +00:00
Felix Fietkau
10ec4fa292
when rebooting, use lazy umounts as fallback (patch by puchu)
...
SVN-Revision: 19429
2010-01-30 18:17:57 +00:00
Felix Fietkau
541725ce18
stop syslogd before rebooting, otherwise umount might not work properly when logging to a file (thx, puchu)
...
SVN-Revision: 19428
2010-01-30 18:17:52 +00:00
Felix Fietkau
d46a32fa60
when rebooting, stop the network interfaces last (just before umount) to allow services to shut down properly (thx, puchu)
...
SVN-Revision: 19427
2010-01-30 18:17:48 +00:00
Felix Fietkau
a254a9ff08
base-files: do not warn about nonexistant sysctl overrides (some of them are config dependent)
...
SVN-Revision: 19375
2010-01-29 02:17:11 +00:00
Felix Fietkau
8ec79b460c
run led init after /etc/init.d/done to keep the configured led settings active after the system has finished booting Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
...
SVN-Revision: 19050
2010-01-06 02:34:20 +00:00
Felix Fietkau
889532d1fd
do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush compatibility
...
SVN-Revision: 18717
2009-12-09 15:15:25 +00:00
Felix Fietkau
e39038f688
mount debugfs by default
...
SVN-Revision: 18502
2009-11-23 20:35:05 +00:00
Jo-Philipp Wich
cfe1bc11ad
base-files: only try to execute watchdog if binary is present
...
SVN-Revision: 18102
2009-10-20 17:07:08 +00:00
Jo-Philipp Wich
bdaeaafbef
base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts
...
SVN-Revision: 17571
2009-09-11 21:35:03 +00:00
Felix Fietkau
91d40a14af
Revert "fix nonhotpluggable networks not being brought up. Closes #2781 " (r17527) until we've solved the race conditions it creates
...
SVN-Revision: 17544
2009-09-09 00:16:55 +00:00
Travis Kemen
27915ac778
fix nonhotpluggable networks not being brought up. Closes #2781
...
SVN-Revision: 17527
2009-09-06 17:02:14 +00:00
Felix Fietkau
7d67818ab1
Revert "add ifup -a to boot(), closes #4543 #2781 " (r17515) Hotpluggable interfaces are already brought up before /etc/init.d/network boot and this change can break them, if the ifup -a command runs at the wrong time, also starts many interfaces twice, which can lead to issues with PPPoE.
...
SVN-Revision: 17516
2009-09-05 13:05:59 +00:00
Travis Kemen
1776830e64
add ifup -a to boot(), closes #4543 #2781
...
SVN-Revision: 17515
2009-09-05 05:33:23 +00:00
Travis Kemen
4c47562a37
extend logging functions
...
SVN-Revision: 17514
2009-09-04 21:09:13 +00:00
Felix Fietkau
7c32f45749
base-files: clean up init.d/fstab and port it to the new config_get
...
... also remove the unused noauto variable in swapon.
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17159
2009-08-07 00:08:01 +00:00
Felix Fietkau
ae0745e240
base-files: port init.d/led to new config_get
...
... and don't call logger directly, rcS takes care of the correct redirection
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17158
2009-08-07 00:07:56 +00:00
Felix Fietkau
2892e2f1d5
base-files: port init.d/boot to new config_get
...
... and localize some variables.
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17157
2009-08-07 00:07:51 +00:00
Gabor Juhos
9b5e65f101
base-files: set rules file for hotplug2 in the boot script ( closes #5235 )
...
SVN-Revision: 16215
2009-05-30 17:09:41 +00:00
Gabor Juhos
463a6f4bda
base-files: update command line for the new hotplug2
...
SVN-Revision: 16154
2009-05-28 18:48:54 +00:00
Felix Fietkau
cbd52550bd
rcS: wait for init scripts to complete before initiating the shutdown (patch from #5032 )
...
SVN-Revision: 15530
2009-04-30 22:59:18 +00:00
Nicolas Thill
2fdeecdb47
add an explicit 'sysinit' tag for logging initscripts output, instead of '' that was logged as is
...
SVN-Revision: 15323
2009-04-21 12:02:34 +00:00
Michael Büsch
20b5626363
Allow running without "logger" installed
...
SVN-Revision: 14938
2009-03-18 13:05:18 +00:00
Michael Büsch
088ea2fb6e
Support configurations without syslogd/klogd.
...
SVN-Revision: 14937
2009-03-18 12:20:21 +00:00
Hauke Mehrtens
3ac154fc9c
On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin
...
SVN-Revision: 14770
2009-03-07 12:58:08 +00:00
Florian Fainelli
1716050f0c
allow specifying port where to log ( #2019 )
...
SVN-Revision: 14396
2009-02-03 20:26:00 +00:00
Jo-Philipp Wich
341c1dbdf5
package/base-files: fix chmod of /tmp/.uci, bump package revision
...
SVN-Revision: 13903
2009-01-06 21:53:45 +00:00
Travis Kemen
91d3e6b05b
make option name optional
...
SVN-Revision: 12585
2008-09-13 00:08:39 +00:00
Felix Fietkau
2176ae1a6f
fix a race condition which would leave dnsmasq in infinite resolving recursion nirvana
...
SVN-Revision: 12424
2008-08-28 14:10:55 +00:00
John Crispin
12df593510
fixes broken if-then in led init script
...
SVN-Revision: 12411
2008-08-27 20:33:13 +00:00
John Crispin
3403cbe948
remove /etc/functions.sh call from led hotplug script
...
SVN-Revision: 12312
2008-08-14 19:07:22 +00:00
Steven Barth
6b6d027172
added support for the timer-trigger to uci LED support
...
SVN-Revision: 12236
2008-08-07 11:01:46 +00:00
John Crispin
72396bd614
add uci led support - /etc/config/system can hold led info which is applied at boot - adds /sbin/led.sh to set/clear leds via a name defined in /etc/config/system
...
SVN-Revision: 12104
2008-08-04 22:56:46 +00:00
John Crispin
b73eedd62b
work aroung error message during boot if swapon is nt installed
...
SVN-Revision: 12087
2008-08-04 08:50:16 +00:00
Felix Fietkau
37c7e13a5f
move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well
...
SVN-Revision: 12058
2008-08-01 03:01:42 +00:00
Nicolas Thill
a760ff5861
fix variable names in tests
...
SVN-Revision: 11911
2008-07-22 21:19:05 +00:00
Yuji Mano
0b5f602421
Revert previous bad commit r11512
...
SVN-Revision: 11513
2008-06-16 19:37:00 +00:00
Yuji Mano
5ee48c0b00
Add the PS3 specific utility bl-option, a helper sctipt to get and set bootloader options in flash memory.
...
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
SVN-Revision: 11512
2008-06-16 19:14:13 +00:00
John Crispin
0bf765b362
system now knows which timezone it is in
...
SVN-Revision: 11445
2008-06-11 19:59:16 +00:00
Matteo Croce
ac8bf03f8e
create /etc/fstab on boot ( closes #3458 )
...
SVN-Revision: 11225
2008-05-20 19:02:19 +00:00
Matteo Croce
0a1c669ec1
fix some wrong paths
...
SVN-Revision: 11217
2008-05-19 22:08:46 +00:00
Rod Whitby
c715985c97
base-files: Update /etc/init.d/fstab with new location of swapon and swapoff (they moved from /sbin to /usr/sbin)
...
SVN-Revision: 11157
2008-05-17 00:13:05 +00:00
Ralph Hempel
6d4c89c7f5
adding check for /proc/net/vlan/config (==vlan enabled kernel)
...
SVN-Revision: 11132
2008-05-13 09:21:17 +00:00
Matteo Croce
ac5cfeb417
fix swap{on,off} path
...
SVN-Revision: 10863
2008-04-19 14:36:01 +00:00
Travis Kemen
37b0cc9a10
fix restart on platforms without a setup_switch()
...
SVN-Revision: 10846
2008-04-15 16:29:49 +00:00
Travis Kemen
bae7e5bebb
add missing include in restart
...
SVN-Revision: 10794
2008-04-12 14:57:47 +00:00
Matteo Croce
633e548e01
fix typo(2) in watchdog init script
...
SVN-Revision: 10727
2008-04-03 21:01:16 +00:00
Matteo Croce
cd4447d269
fix typo in watchdog init script
...
SVN-Revision: 10726
2008-04-03 20:59:18 +00:00
Florian Fainelli
dd2afbeee3
Start the watchdog daemon if a harware watchdog is present
...
SVN-Revision: 10721
2008-04-03 14:36:10 +00:00
Florian Fainelli
8d30372bdc
Make the syslog ring-buffer size configurable ( #3204 )
...
SVN-Revision: 10557
2008-03-07 10:44:13 +00:00
Florian Fainelli
c3c83c6574
Fix typo
...
SVN-Revision: 10544
2008-03-04 15:50:41 +00:00
Florian Fainelli
62b0af39c7
Also call setup_switch on network restart
...
SVN-Revision: 10540
2008-03-02 14:56:13 +00:00
Felix Fietkau
0cf1a58282
Here comes the new UCI. Enjoy :)
...
SVN-Revision: 10367
2008-02-03 06:48:15 +00:00
Felix Fietkau
d36374c428
init: check permissions on rc.d files
...
We try to unconditionally execute /etc/rc.d/* files, even if they're
not executable - an easy way of temproarily disabling a service. When
this happens, we get a permission denied error on boot.
This change only tries to run execulable startup scripts.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
SVN-Revision: 9607
2007-11-28 02:36:14 +00:00
Felix Fietkau
b443ee0fbb
init: don't start hotplug2 if it doesn't exist
...
The current init script always tries to start hotplug 2, even if
it's not present, so we get an error on boot.
This change checks for the presence of the hotplug2 binary before
trying to start it.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
SVN-Revision: 9606
2007-11-28 02:36:10 +00:00
Gabor Juhos
131d358fc3
6tunnel: move init/config files to the right place
...
SVN-Revision: 9453
2007-10-27 07:12:13 +00:00
Florian Fainelli
f038ae8671
Mark 6tunnel as executable, avoids ": /etc/init.d/rcS: line 8: /etc/rc.d/S466tunnel: Permission denied"
...
SVN-Revision: 9424
2007-10-24 13:42:15 +00:00
Florian Fainelli
64734f94c7
Add 6tunnel configuration for tunnel brokers based configuration (not SiXXS), disabled by default
...
SVN-Revision: 9259
2007-10-11 09:01:38 +00:00
Rod Whitby
ac8f66b987
base-files: Added support for swap configuration in /etc/config/fstab
...
SVN-Revision: 8947
2007-09-22 13:47:20 +00:00
Rod Whitby
cd95009fc6
Added support for /etc/default/fstab - a means of automatically mounting devices on boot.
...
SVN-Revision: 8916
2007-09-21 13:20:50 +00:00
Felix Fietkau
ca32501abe
add --no-coldplug to the hotplug2 process started by /etc/init.d/boot - should prevent duplicate ifup actions. thx, ffrrrr.
...
SVN-Revision: 8864
2007-09-20 10:19:24 +00:00
John Crispin
206998371f
wireless config gets regenerated not only when it does not exist, buit also if it is 0 len
...
SVN-Revision: 8149
2007-07-24 22:10:10 +00:00
Felix Fietkau
f95db8bac8
fix a warning ( #1800 )
...
SVN-Revision: 7809
2007-06-30 20:00:29 +00:00
Felix Fietkau
c09dc20f2c
replace the hotplug2 fork handling hack with a better solution implemented in upstream (thanks, iSteve)
...
SVN-Revision: 7786
2007-06-30 11:05:14 +00:00
Felix Fietkau
8c41e51e92
fix failsafe on broadcom, send netlink events in diag when running linux 2.6
...
SVN-Revision: 7722
2007-06-25 08:32:25 +00:00
Felix Fietkau
4f16e9cc3e
keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
...
SVN-Revision: 7643
2007-06-16 00:01:33 +00:00
Florian Fainelli
440f537f48
Add the conloglevel option ( #1682 )
...
SVN-Revision: 7613
2007-06-13 17:41:54 +00:00
Mike Baker
4a41439c46
unified preinit environment
...
SVN-Revision: 7173
2007-05-10 14:37:47 +00:00
Mike Baker
f0fa2a3de5
unmount filesystems at shutdown
...
SVN-Revision: 7166
2007-05-10 10:45:04 +00:00
Mike Baker
291420a8f3
add K* scripts to be run at shutdown
...
SVN-Revision: 7163
2007-05-10 10:07:38 +00:00