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
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
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
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
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
811d90ff40
mount_root: prepare base-files
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36429
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
Jonas Gorski
29a3af1bb8
base-files: make firstboot ask for confirmation
...
To prevent accidential resets ask for confirmation (and default to n).
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 35712
12 years ago
Jo-Philipp Wich
70b0ef6322
sysupgrade: clarify online help
...
Fixes #12346 .
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 34975
12 years ago
Jo-Philipp Wich
58070b0083
sysupgrade: do not require an extra argument after --restore-backup
...
Neither --create-backup nor --restore-backup need an image name (following
the backup filename). Treat them in uniform way.
Mostly fixes #12346 .
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 34974
12 years ago
Mirko Vogt
4d4b2d3ced
merge /lib/functions/boot.sh and /lib/functions.sh
...
SVN-Revision: 34794
12 years ago
Mirko Vogt
439a869090
Do not overload mount-call - trying to reduce confusion
...
The behaviour of calling 'mount' differed depending on whether it called
the busybox-mount, the mount of util-linux, the mount defined in
/lib/functions.sh and /lib/functions/boot.sh
/etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh,
both re-defining 'mount'.
SVN-Revision: 34792
12 years ago
Jo-Philipp Wich
70aaa116eb
base-files: provide a sysupgrade -r (--restore-backup) option as convenience wrapper for tar -C / -x(v)zf
...
SVN-Revision: 33147
12 years ago
Jo-Philipp Wich
17dc1d5c44
base-files: fix option parsing of -F/--force parameter
...
SVN-Revision: 33075
12 years ago
Jo-Philipp Wich
f2dde4f5ba
base-files: allow wireless ifaces to be part of multiple networks
...
SVN-Revision: 32503
13 years ago
Jo-Philipp Wich
9ae901445b
/etc/functions.sh => /lib/functions.sh
...
SVN-Revision: 32062
13 years ago
Jo-Philipp Wich
4e88bcfb00
base-files: implement a --force option for sysupgrade to override image checks, useful to upgrade old ar71xx installations to current trunk ones
...
SVN-Revision: 29688
13 years ago
Jo-Philipp Wich
1c6821b42e
base-files: add -b (--create-backup) option to sysupgrade, which generates a backup .tar.gz according to the user settings. This will also be reused by LuCI.
...
SVN-Revision: 29587
13 years ago
Jo-Philipp Wich
d46e17548b
base-files: kill remaining processes after running user hooks ( #10461 )
...
SVN-Revision: 29256
13 years ago
Jo-Philipp Wich
a73fffe857
base-files: properly handle wifi ifaces with no network attached, useful for unmanaged interfaces like used for batman or monitoring
...
SVN-Revision: 28860
13 years ago
Felix Fietkau
dab5ebaa76
netifd: ensure that a bridge gets created before hostapd needs it, hostapd must not attempt to create the bridge by itself
...
SVN-Revision: 28745
13 years ago
Jo-Philipp Wich
52e93e54bc
base-files: sysupgrade: kill all but essential processes before starting the update
...
SVN-Revision: 28626
13 years ago
Felix Fietkau
c2b5767572
base-files: move network related scripts to a separate package to make the transition to netifd easier
...
SVN-Revision: 28495
13 years ago
Jo-Philipp Wich
365f76551a
base-files: attempt bring up related wifi devices when calling ifup If a user invoked /sbin/ifup to bring up an interface, the setup used to fail in case of wireless networks tied to a non-bridged interface definition. Likewise, the bringup of "lan" in the default configuration will reinitialize the bridge but do not re-join the wireless network to it, requiring an extra call to /sbin/wifi (which might not be possible anymore due to a severed link if connected wirelessly).
...
The changeset modifies the "ifup" command to search for related wireless
devices and call "wifi up" on them if applicable. This way the commands for
wireless and non-wireless interfaces are unified from a cli point of view.
The "ifup -a" case has not been changed to keep the logic of the
/etc/init.d/network boot sequence. This might be changed later.
Solves #9763 .
SVN-Revision: 27720
14 years ago
Jo-Philipp Wich
1e34c02e3e
base-files: add -h and --help options to sysupgrade ( #9728 )
...
SVN-Revision: 27630
14 years ago
Jo-Philipp Wich
97ee10d691
base-files: fix error reporting for unsupported protocols on virtual interfaces
...
SVN-Revision: 27132
14 years ago
Florian Fainelli
ebe7bdba88
adds a --help option to /sbin/wifi
...
Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de>
SVN-Revision: 24258
14 years ago
Jo-Philipp Wich
d80f82d7a4
base-files: - add sysupgrade support for keepfile hints * introduces /lib/upgrade/keep.d/ for per-package keepfile lists * introduces /etc/sysupgrade.conf for user defined keepfile hints - prime /lib/upgrade/keep.d/base-files-essential to keep sysupgrade usable for images without opkg - change sysupgrade to build the keepfile list from /lib/upgrade/keep.d/, /etc/sysupgrade.conf and opkg list-changed-conffiles
...
SVN-Revision: 23258
14 years ago
Jo-Philipp Wich
978ecae685
base-files: sysupgrade: merge info from "opkg list-changed-conffiles" to backup file list
...
SVN-Revision: 23233
14 years ago
Jo-Philipp Wich
91118a9500
base-files: add an experimental "-c" flag which tries to preserve *all* changed files in /overlay/etc minus some system files
...
SVN-Revision: 22977
14 years ago
Felix Fietkau
3e75044a95
wifi: fix duplicate ht capabilities in the hostapd config file by clearing the list at config load time
...
SVN-Revision: 22099
15 years ago
Jo-Philipp Wich
261d41a906
base-files: - use add_dns() and remove_dns() for when changing resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision
...
SVN-Revision: 21638
15 years ago
Jo-Philipp Wich
66ab73d01f
base-files, ppp: remove protocol specific cleanup code from /sbin/ifdown and move it to protocol stop callbacks
...
SVN-Revision: 21383
15 years ago
Felix Fietkau
c82bcb2a29
fix jffs2 and mini_fo mount in failsafe (patch from #7134 )
...
SVN-Revision: 20838
15 years ago
Vasilis Tsiligiannis
a1e4c66c16
base-files: Use hotplug2 to download firmware
...
SVN-Revision: 20683
15 years ago
Vasilis Tsiligiannis
043b77a460
base-files: Cancel firmware loading if file doesn't exist
...
SVN-Revision: 20649
15 years ago
Florian Fainelli
7af8ee0481
change from /jffs to /overlay, patch from Daniel Dickinson
...
SVN-Revision: 20356
15 years ago
Nicolas Thill
71886caf3f
firstboot: detect mtd, rom & jffs parts first, fix jffs mounted test
...
SVN-Revision: 19980
15 years ago
Travis Kemen
32f6e6c44d
revert r19964 for now, there are issues with opkg/ipkg.py generating the status db
...
SVN-Revision: 19970
15 years ago
Travis Kemen
249d48a68e
grab all config files for installed packages, closes #3718
...
SVN-Revision: 19964
15 years ago
Felix Fietkau
19555b702e
/sbin/wifi: improve reliability of restarts by resetting the state properly
...
SVN-Revision: 19495
15 years ago
Felix Fietkau
56bc02a305
add preinit modularization work by Daniel Dickinson (cshore)
...
SVN-Revision: 19331
15 years ago
Felix Fietkau
62d7bb6ecd
fix a typo in the hwmode handling in /sbin/wifi (thx, maddes)
...
SVN-Revision: 19313
15 years ago