Felix Fietkau
d368cc63fe
base-files: remove config_clear() and list_remove()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40409
2014-04-07 10:01:59 +00:00
Felix Fietkau
3d275a8deb
base-files: move uci_apply_defaults() to /etc/init.d/boot
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40408
2014-04-07 10:01:54 +00:00
Felix Fietkau
4a6ad541d8
/lib/functions.sh: remove hotplug_dev()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40406
2014-04-07 09:50:26 +00:00
Felix Fietkau
ba2b6f661b
/lib/functions.sh: remove strtok()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40405
2014-04-07 09:50:23 +00:00
Felix Fietkau
c27c5b9cbc
/lib/functions.sh: move preinit related functions to /lib/functions/preinit.sh
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40404
2014-04-07 09:50:19 +00:00
Felix Fietkau
e90b695157
/lib/functions.sh: remove pi_include()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40403
2014-04-07 09:50:15 +00:00
Felix Fietkau
1d763171bf
/lib/functions.sh: remove jffs2_ready()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40402
2014-04-07 09:50:11 +00:00
Felix Fietkau
0f2524f473
/lib/functions.sh: remove support for non-overlayfs overlay fopivot types
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40401
2014-04-07 09:50:07 +00:00
John Crispin
08b4924401
ubi-utils: mini version of mtd-utils that only includes ubi tools
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40367
2014-04-03 14:26:42 +00:00
John Crispin
0dc9d8d6ff
fstools: add the new fstools package
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39895
2014-03-12 19:32:51 +00:00
Imre Kaloz
6a4ecd05f0
the root password should be empty for real, like before
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39650
2014-02-21 10:39:14 +00:00
John Crispin
7917a87d12
base-files: split /etc/init.d/boot into 2 files
...
this allows us to bind a procd trigger to system.@system[-1]
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39615
2014-02-18 13:33:40 +00:00
Jo-Philipp Wich
6ae1433ab9
base-files: expose taint flags in /etc/openwrt_release
...
SVN-Revision: 39437
2014-01-31 15:48:47 +00:00
Jo-Philipp Wich
73344b9c56
Add sysfixtime init script, replacement of luci_fixtime
...
Simply scan for the most recent file in /etc and set
system time to this file modification time if it's in the future
It allow some time dependent program to work immediatly
without waiting for ntpd to sync
v1: v2: bad approach
v3: simply scan /etc, thanks to Bastian Bittorf for the idea
v4: use sort -n, thanks to Catalin Patulea
v5: use [] instead of [[]], thanks to Andreas Mohr
v6: use openwrt style, thanks to Bastian Bittorf
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
SVN-Revision: 39422
2014-01-29 13:17:03 +00:00
Luka Perkov
d66d2ad104
base-files: add ucidef_add_switch_port function
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39372
2014-01-23 11:33:41 +00:00
John Crispin
f18112883f
sysupgrade: do not kill any processes in failsafe
...
sysugrade killed the lock causing failsafe to stop
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
SVN-Revision: 39318
2014-01-17 22:12:05 +00:00
John Crispin
834204bda6
base-files: fix mount-utils incompatibility
...
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
SVN-Revision: 39169
2013-12-27 21:15:09 +00:00
Jo-Philipp Wich
ef0ce72b39
base-files: ipcalc.sh: support bit length as netmask parameter
...
SVN-Revision: 39100
2013-12-16 16:29:23 +00:00
Jo-Philipp Wich
fe230cac18
base-files: add network_get_protocol() to /lib/functions/network.sh
...
SVN-Revision: 39099
2013-12-16 16:28:45 +00:00
Felix Fietkau
b656a56225
/sbin/wifi: reload network/wireless on wifi restart
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39036
2013-12-11 19:48:19 +00:00
Luka Perkov
3ceb6b3274
base-files: fix whitespaces
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39006
2013-12-09 11:30:14 +00:00
Felix Fietkau
6e0fafd816
wifi: restart netifd wifi interfaces on the "up" command like the old variant
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38990
2013-12-02 16:53:27 +00:00
Felix Fietkau
3c50feca19
wifi: rename the "reload" (restarting non-netifd wifi) command to "reload_legacy"
...
Add a new "reload" command that reloads the netifd config as well
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38989
2013-12-02 16:53:24 +00:00
Felix Fietkau
498d84fc4e
netifd: add wireless configuration support and port mac80211 to the new framework
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38988
2013-12-02 16:41:03 +00:00
John Crispin
93e9a71538
base-files: allow users to delect debug level during boot
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38909
2013-11-25 08:34:55 +00:00
Felix Fietkau
69598dd020
base-files: add the DEVICENAME variable for hotplug scripts
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38861
2013-11-19 00:03:39 +00:00
Felix Fietkau
ff17114ba1
ar71xx: Unifi AP Pro sysupgrade patch
...
The current implementation of mtd will not append the backup
file created by sysupgrade to the correct partition, as mtd will append
the data to first jffs2 partition it finds. As the kernel is also
stored on a jffs2 partition (which resides before the overlay
partition), the data will be appended to this partition.
To fix this problem, a new option
-s <number> skip the first n bytes when appending data to the jffs2 partiton, defaults to "0"
is added to mtd.
Signed-off-by: Peter Wagner <tripolar@gmx.at>
SVN-Revision: 38807
2013-11-14 19:38:54 +00:00
Gabor Juhos
b7914344ad
base-files: add macaddr_canonicalize helper function
...
In commit r38690, the MAC address canonicalization
has been converted to use 'tr' instead of 'printf'.
This only works if with MAC addresses which uses
the 'xx:xx:xx:xx:xx:xx' format.
However on some boards, the MAC addresses are stored
in different format in the mtd partition. Some vendors
are using hyphens or dots as separators instead of
colons. Also the leading zeroes may be missing from the
individual octets or those are replaced with spaces.
Add a new function which can be used to convert these
into the 'xx:xx:xx:xx:xx:xx' format. Also update the
'mtd_get_mac_ascii' function to use the new helper.
The helper function is based on this code:
http://isquared.nl/blog/2010/08/11/Bash-function-to-canonicalize-MAC-addresses/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38803
2013-11-14 17:44:42 +00:00
Luka Perkov
1df0179b28
base-files: don't enter failsafe if triggered by switch
...
Fixes failsafe issues with switches after r38725.
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38770
2013-11-11 23:34:11 +00:00
Hauke Mehrtens
0d82bbb1fb
base-files: don't kill nas for sysupgrade
...
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 38766
2013-11-11 22:12:58 +00:00
John Crispin
c902a76f4d
base-files: fix typo in rfkill script
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38742
2013-11-11 18:12:30 +00:00
John Crispin
871744f5de
base-files: update rfkill script to work with slider buttons
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38729
2013-11-11 12:19:22 +00:00
John Crispin
243179f9f6
base-files: add a generic wps button handler
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38726
2013-11-11 12:19:10 +00:00
Gabor Juhos
23cf426324
base-files: mtd_get_mac_ascii bugfix
...
The mtd_get_mac_ascii utility function was broken. This fixes it.
- Remove the superfluous include of /lib/functions.sh. The
function is already in that file so it is pointless,
- only use a variable if the whole key word matches,
- don't try to process the MAC address if it is empty,
- use 'tr' to canonicalize the MAC address,
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[juhosg: add more fixes, update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38690
2013-11-08 12:16:21 +00:00
John Crispin
76506e7fa4
base-files: Make /etc/init.d/boot restartable
...
Only reload hostname and timezone config on /etc/init.d/boot restart.
Module loading and basic boot setup is only done during boot.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 38670
2013-11-07 12:45:57 +00:00
John Crispin
950428fb1b
base-files: add a post start hook for procd managed services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38024
2013-09-17 21:45:34 +00:00
Jo-Philipp Wich
b7f8f212ae
base-files: implement -l (--list-backup) sysupgrade parameter to list the files that would be backed up
...
SVN-Revision: 37627
2013-07-31 18:11:55 +00:00
Jo-Philipp Wich
2a1ccf1830
base-files: abort sysupgrade if file specified with --restore-config is not found
...
SVN-Revision: 37624
2013-07-31 14:10:34 +00:00
Jo-Philipp Wich
2771edf647
base-files: implement -T (--test) sysupgrade parameter to verify image without actually flashing it
...
SVN-Revision: 37620
2013-07-30 16:42:05 +00:00
John Crispin
3e54dbbf60
base-files: be verbose when entering failsafe due to a button being pressed
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37535
2013-07-25 20:28:36 +00:00
Gabor Juhos
8d55ea10ad
base-files: add mtd_get_part_size helper
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37475
2013-07-20 09:25:49 +00:00
Luka Perkov
67f1d364b8
base-files/busybox: move ntpd init script from base-files to busybox
...
SVN-Revision: 37383
2013-07-17 22:24:45 +00:00
Jo-Philipp Wich
55178554c2
base-files: reject invalid uci keys in network_get_device() and related procedures ( #13886 )
...
SVN-Revision: 37345
2013-07-15 13:42:58 +00:00
Felix Fietkau
b95bdc8ab5
kernel/base-files: clean up old code related to refreshing mtd partitions, it is no longer used anywhere
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37282
2013-07-14 12:56:58 +00:00
John Crispin
8eb56a88a4
procd: add a small script that handles config reloads until configd is ready
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37248
2013-07-11 17:00:54 +00:00
John Crispin
8069d87d3c
base-files: convert sysntpd init script to procd
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37244
2013-07-11 17:00:35 +00:00
John Crispin
06ae364c3d
base-files: run readlink on initscript name before opening services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37241
2013-07-11 17:00:21 +00:00
John Crispin
523114e741
base-file: usbfs is no longer mounted under /proc/bus/usb
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37240
2013-07-11 17:00:17 +00:00
John Crispin
9e36e10cf7
base-files: add 2 missing variable defines
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37204
2013-07-08 16:35:02 +00:00
John Crispin
43a3d87b83
package: fix insmod on install
...
the procd changes broke the postinst insmod.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37015
2013-06-22 22:09:40 +00:00