John Crispin
09273f5c0a
base-files: regenerate the /lib64 symlink when switching to a ramdisk
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41284
11 years ago
Jo-Philipp Wich
7eb721425e
base-files: depend on jsonfilter and rewrite network.sh to use it
...
Switches /lib/functions/network.sh from jshn based json parsing to
jsonfilter expression while keeping the existing api.
Expensive methods like "network_find_wan" are up to 20x faster now.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 41281
11 years ago
John Crispin
4b1c48bc93
base-files: add upgraded to the list of daemons not killed
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41268
11 years ago
John Crispin
3dca5a158d
procd: various cleanups to /lib/upgrade/nand.sh
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41222
11 years ago
John Crispin
bedd6f44a5
base-files: properly remove stderr from zcat/bzcat
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41135
11 years ago
John Crispin
c43d614f89
base-files: add an ugly hack for nand to sysupgrade
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41126
11 years ago
John Crispin
e73538ba56
base-files: include more ubi* tools in sysupgrade ramdisk
...
Also add some more busybox symlinks which are useful for sysupgrade
on UBI-enabled devices.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 41125
11 years ago
Felix Fietkau
281f415885
base-files: fix argument order to date in sysfixtime so that it also works with musl
...
Seems like the reverse order relies on GNU specific getopt hackery which
musl does not replicate
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41045
11 years ago
John Crispin
47cf6f9cd1
base-files: /etc/rc.button/power should be executable
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40993
11 years ago
John Crispin
0de0310a9c
base-files: Allow installation of symlinks using RAMFS_COPY_BIN env var.
...
http://patchwork.openwrt.org/patch/5086/
Signed-off-by: karl.vogel@gmail.com
SVN-Revision: 40943
11 years ago
John Crispin
37eb27e47d
base-files: remove function service_kill
...
Function service_kill is deprecated and has no user, so remove it.
Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
SVN-Revision: 40912
11 years ago
John Crispin
36d0a5e3fb
base-files: add simple shutdown script
...
Since svn rev [38557] we support power buttons, for example
the ACPI power button on x86 machines.
Add a simple shutdown script to /etc/rc.button, to gracefully shutdown
the machine after the power button is pressed.
Tested on x86 and x86_64 in a kvm virtual machine.
Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
SVN-Revision: 40909
11 years ago
John Crispin
44e2de03a4
base-files: calling stop_service before procd_kill.
...
Before this patch, doing `/e/c/network restart' will emit the folloing
error by `ubus network.wireless down "{}"' because netifd already quit
by that time.
Command failed: not found
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 40906
11 years ago
John Crispin
dcf42b40fc
base-files: removes logging
...
Since logd haven't started at this point, logging does not work.
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
SVN-Revision: 40904
11 years ago
Felix Fietkau
bb240b50b6
base-files: enable force_link for lan by default
...
This allows services to bind to it at boot time instead of waiting for a
cable to be plugged in
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40773
11 years ago
Felix Fietkau
c622a37101
base-files: remove duplicate stop_service() function.
...
It was introduced in commit 2f966e8, "base-files: add a post start hook
for procd managed services".
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 40576
11 years ago
Felix Fietkau
a423055592
base-files: remove duplicate wps button handler ( #15621 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40528
11 years ago
Felix Fietkau
dd58e15b84
base-files: add back missing function for find_mtd_part to /lib/functions.sh ( fixes #15496 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40426
11 years ago
John Crispin
665d39f698
base-files: the ubi tol should be installed when jumping to ram_fs
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40420
11 years ago
John Crispin
1d5ac95850
base-files: make use of new fstools
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40416
11 years ago
Felix Fietkau
28f4f4a6d7
/lib/functions.sh: remove config_rename()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40412
11 years ago
Felix Fietkau
4a9ea80ef0
/lib/functions.sh: move rarely used mtd and macaddr related functions to /lib/functions/system.sh
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40411
11 years ago
Felix Fietkau
e700dcaf04
/lib/functions.sh: remove jffs2_mark_erase()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40410
11 years ago
Felix Fietkau
d368cc63fe
base-files: remove config_clear() and list_remove()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40409
11 years ago
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
11 years ago
Felix Fietkau
4a6ad541d8
/lib/functions.sh: remove hotplug_dev()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40406
11 years ago
Felix Fietkau
ba2b6f661b
/lib/functions.sh: remove strtok()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40405
11 years ago
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
11 years ago
Felix Fietkau
e90b695157
/lib/functions.sh: remove pi_include()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40403
11 years ago
Felix Fietkau
1d763171bf
/lib/functions.sh: remove jffs2_ready()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40402
11 years ago
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
11 years ago
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
11 years ago
John Crispin
0dc9d8d6ff
fstools: add the new fstools package
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39895
11 years ago
Imre Kaloz
6a4ecd05f0
the root password should be empty for real, like before
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39650
11 years ago
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
11 years ago
Jo-Philipp Wich
6ae1433ab9
base-files: expose taint flags in /etc/openwrt_release
...
SVN-Revision: 39437
11 years ago
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
11 years ago
Luka Perkov
d66d2ad104
base-files: add ucidef_add_switch_port function
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39372
11 years ago
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
11 years ago
John Crispin
834204bda6
base-files: fix mount-utils incompatibility
...
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
SVN-Revision: 39169
11 years ago
Jo-Philipp Wich
ef0ce72b39
base-files: ipcalc.sh: support bit length as netmask parameter
...
SVN-Revision: 39100
11 years ago
Jo-Philipp Wich
fe230cac18
base-files: add network_get_protocol() to /lib/functions/network.sh
...
SVN-Revision: 39099
11 years ago
Felix Fietkau
b656a56225
/sbin/wifi: reload network/wireless on wifi restart
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39036
11 years ago
Luka Perkov
3ceb6b3274
base-files: fix whitespaces
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39006
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
John Crispin
93e9a71538
base-files: allow users to delect debug level during boot
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38909
11 years ago
Felix Fietkau
69598dd020
base-files: add the DEVICENAME variable for hotplug scripts
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38861
11 years ago
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
11 years ago