Hauke Mehrtens
0d82bbb1fb
base-files: don't kill nas for sysupgrade
...
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 38766
11 years ago
John Crispin
c902a76f4d
base-files: fix typo in rfkill script
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38742
11 years ago
John Crispin
871744f5de
base-files: update rfkill script to work with slider buttons
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38729
11 years ago
John Crispin
243179f9f6
base-files: add a generic wps button handler
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38726
11 years ago
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
11 years ago
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
11 years ago
Steven Barth
cbdd346b11
Add package signing infrastructure
...
Add package signing key and certificate configuration options to the
"Image configuration" submenu. If enabled, the Packages.gz list will
be signed as file Packages.sig. The passphrase for the signing key can
be sourced from a file or entered by the user. The signing certificate
is automatically added to the firmware image if opkg-smime is selected.
Signed-off-by: Evan Hunt <each@isc.org>
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 38284
11 years ago
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
11 years ago
Jo-Philipp Wich
b7f8f212ae
base-files: implement -l (--list-backup) sysupgrade parameter to list the files that would be backed up
...
SVN-Revision: 37627
11 years ago
Jo-Philipp Wich
2a1ccf1830
base-files: abort sysupgrade if file specified with --restore-config is not found
...
SVN-Revision: 37624
11 years ago
Jo-Philipp Wich
2771edf647
base-files: implement -T (--test) sysupgrade parameter to verify image without actually flashing it
...
SVN-Revision: 37620
11 years ago
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
11 years ago
Gabor Juhos
8d55ea10ad
base-files: add mtd_get_part_size helper
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37475
11 years ago
Luka Perkov
67f1d364b8
base-files/busybox: move ntpd init script from base-files to busybox
...
SVN-Revision: 37383
11 years ago
Jo-Philipp Wich
55178554c2
base-files: reject invalid uci keys in network_get_device() and related procedures ( #13886 )
...
SVN-Revision: 37345
11 years ago
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
11 years ago
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
12 years ago
John Crispin
8069d87d3c
base-files: convert sysntpd init script to procd
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37244
12 years ago
John Crispin
06ae364c3d
base-files: run readlink on initscript name before opening services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37241
12 years ago
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
12 years ago
John Crispin
9e36e10cf7
base-files: add 2 missing variable defines
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37204
12 years ago
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
12 years ago
John Crispin
4c43cacce0
base-files: module loading is now handled by ubox/kmodloader
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37003
12 years ago
John Crispin
d0db343fc4
base-files: /etc/init.d/rcS is no longer needed, procd handles this for us now
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37002
12 years ago
John Crispin
533dfc39e3
base-files: drop 2 pointless hotplug trigger stubs
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37001
12 years ago
John Crispin
af95449273
base-files: procd is now the init process
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36998
12 years ago
John Crispin
aa2fc19800
base-files: procd init is now the default, remove files.old
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36996
12 years ago
Jo-Philipp Wich
265a2deba3
base-files: network.sh: extend network_get_ipaddr6() / network_get_subnet6() to take ipv6-prefix-assignment into account, add further helper functions to fetch all ips of a given interface
...
SVN-Revision: 36942
12 years ago
Steven Barth
33c620773d
base-files: remove unnecessary early sysctl-hack
...
SVN-Revision: 36920
12 years ago
Steven Barth
e2f33bedfa
base-files: set default IPv6 forwarding value to 1
...
SVN-Revision: 36918
12 years ago
John Crispin
e078f649b5
procd: make the preinit rules wildcard all buttons for failsafe
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36896
12 years ago
John Crispin
1f52c5a72c
sysupgrade: create state file so procd knows when a sysupgrade is in progress
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36893
12 years ago
John Crispin
5e45a68a4a
base-files: fix failsafe via button press
...
entering failsafe by pressing a button during boot was broken for procd as init
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36891
12 years ago
John Crispin
9353e01af4
base-files: change PATH order
...
This allows packages to override busybox applets by placing the new
binaries in /usr/{sbin,bin}
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36890
12 years ago
Steven Barth
3f67360012
base-files: use less entropy when generating ULAs
...
SVN-Revision: 36865
12 years ago
Jo-Philipp Wich
026271d03c
base-files: change network_find_wan() procedure to ignore default gateways in different routing tables
...
SVN-Revision: 36553
12 years ago
John Crispin
c7c243669c
sysupgrade: fixes broken pipe error during sysupgade
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36548
12 years ago
John Crispin
831c7ea04f
preinit: move cmdline failsafe= handling ot the generic code
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36430
12 years ago
John Crispin
811d90ff40
mount_root: prepare base-files
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36429
12 years ago
John Crispin
39469dea7f
boot: make use of kmodloader if it is available
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36428
12 years ago
Steven Barth
4e8f7f37ed
Change default IPv6 config to enable DHCPv6-PD
...
SVN-Revision: 36384
12 years ago
Steven Barth
ea94d66b0f
Adapt default network configuration for IPv6
...
SVN-Revision: 36278
12 years ago
Jonas Gorski
574bab45ac
base-files: firstboot: only ask for confirmation on TTY
...
Also allow '-y' to force the reset.
SVN-Revision: 36133
12 years ago
Jo-Philipp Wich
6bddf226d3
base-files: move sysctl init after boot
...
SVN-Revision: 36131
12 years ago
Jo-Philipp Wich
7aace3ee3e
base-files: fix bad start index in previous commit
...
SVN-Revision: 36130
12 years ago
Jo-Philipp Wich
acca7eadc4
package/base-files: change sysctl handling Move /etc/init.d/sysctl to index 00 and add hotplug script that applies interface specific sysctls for interfaces that only appear later - this allows to reliably configure per-interface parameters in sysctl.conf, e.g. to disable ipv6 autoconfig on a specific iface.
...
SVN-Revision: 36129
12 years ago
Florian Fainelli
513de712f9
base-files: also apply r36107 to files.old
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36112
12 years ago
Florian Fainelli
3810cc0f46
base-files: sysupgrade fail with eglibc
...
With eglibc, "ldd busybox" give us
libcrypt.so.1 => /lib/libcrypt.so.1 (0x774be000)
libm.so.6 => /lib/libm.so.6 (0x773e4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x773c0000)
libc.so.6 => /lib/libc.so.6 (0x77276000)
/lib/ld.so.1 (0x774fe000)
Thus /lib/ld.so.1 is not printed by the libs fonction and isn't copied to the 'new' root before pivot root
libs() { ldd $* | awk '{print $3}'; }
https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/common.sh
With uclibc the last line of "ldd busybox" is
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x77ada000)
Don't know for musl!
This patch replace https://dev.openwrt.org/changeset/19167 , as glibc is gone
The other way around is to rework libs()
Please apply the fix (mine or another) on trunk and AA
Might fix https://dev.openwrt.org/ticket/12273
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36107
12 years ago
John Crispin
ada74b8732
sysupgrade was broken as procd was getting killed
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36031
12 years ago
John Crispin
f43b7934d2
make basefiles aware of procd
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36003
12 years ago