Commit Graph

150 Commits (34bbbbf9c3b39e7b2d81df590aad5cdbd00280d6)

Author SHA1 Message Date
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
13 years ago
Jo-Philipp Wich 1e34c02e3e base-files: add -h and --help options to sysupgrade (#9728)
SVN-Revision: 27630
13 years ago
Jo-Philipp Wich 97ee10d691 base-files: fix error reporting for unsupported protocols on virtual interfaces
SVN-Revision: 27132
13 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
14 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
14 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
14 years ago
Felix Fietkau c82bcb2a29 fix jffs2 and mini_fo mount in failsafe (patch from #7134)
SVN-Revision: 20838
14 years ago
Vasilis Tsiligiannis a1e4c66c16 base-files: Use hotplug2 to download firmware
SVN-Revision: 20683
14 years ago
Vasilis Tsiligiannis 043b77a460 base-files: Cancel firmware loading if file doesn't exist
SVN-Revision: 20649
14 years ago
Florian Fainelli 7af8ee0481 change from /jffs to /overlay, patch from Daniel Dickinson
SVN-Revision: 20356
14 years ago
Nicolas Thill 71886caf3f firstboot: detect mtd, rom & jffs parts first, fix jffs mounted test
SVN-Revision: 19980
14 years ago
Travis Kemen 32f6e6c44d revert r19964 for now, there are issues with opkg/ipkg.py generating the status db
SVN-Revision: 19970
14 years ago
Travis Kemen 249d48a68e grab all config files for installed packages, closes #3718
SVN-Revision: 19964
14 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
Jo-Philipp Wich cb30b52ec1 base-files, mac80211 (#6491) - fix wep key handling in iw with mac80211 based drivers - sanitize keys where necessary - put a procedure prepare_key_wep() into /sbin/wifi for use by other driver backends
SVN-Revision: 19118
15 years ago
Felix Fietkau 4ab57b9e0f fix firmware loading broken by the busybox upgrade
SVN-Revision: 18705
15 years ago
Jo-Philipp Wich 4d9b1d6c75 base-files: sysupgrade: restrict find command to plain files to avoid duplicates when generating the conffiles tgz archive
SVN-Revision: 18455
15 years ago
Felix Fietkau 8183d10d17 check for sysfs before bypassing normal hotplug calls for firmware events (fixes #5200)
SVN-Revision: 17839
15 years ago
Felix Fietkau 2da13936e9 firstboot: add support for union mounts
SVN-Revision: 17778
15 years ago
Felix Fietkau 0f9f23aebe base-files: move firstboot to /sbin
SVN-Revision: 17775
15 years ago
Jo-Philipp Wich bc37b2e831 base-files: dispatch ifdown events for proto=none interfaces and fix a race condition between revert state and hotplug handlers
SVN-Revision: 17582
15 years ago
Jo-Philipp Wich 8962270fec base-files: add /etc/rc.local to the default save file list
SVN-Revision: 17572
15 years ago
Vasilis Tsiligiannis baa9053e7a base-files: Fix sysupgrade .tar.gz configuration restoring
SVN-Revision: 16626
15 years ago
Vasilis Tsiligiannis 57d7cc7666 base-files: Detect and decompressed gzipped images automatically when flashing with sysupgrade
SVN-Revision: 16407
15 years ago
Nicolas Thill 06413b783e base-files: initialize GZIPED to 0 in sysupgrade since it's used later in numeric comparisons
SVN-Revision: 15890
15 years ago
Jo-Philipp Wich 7da25b844c Don't try to pivot to new ramfs if already running on one This patch allows the sysupgrade script to continue with the upgrade if openwrt is already running on a ramfs. This allows the use of the sysupgrade script as an _installer_ when running from an iso image. A user could boot the system from a bootable cd and invoke sysupgrade -n <URL> to write an image to the hard disk or CF.
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>

SVN-Revision: 15683
15 years ago
Jo-Philipp Wich 71e0f59b80 Add option in sysupgrade to flash gzipped images
SVN-Revision: 15672
15 years ago
Hauke Mehrtens 90fc200a60 In wifi_fixup_hwmode the value 11bg for hwmode was not transfered to bg.
SVN-Revision: 15180
15 years ago
Felix Fietkau ca749bea97 wifi: fix hostapd + autochannel
SVN-Revision: 15055
15 years ago
Jo-Philipp Wich 9a72419724 - fix mac assignment for broadcom vifs in bridging mode - thanks abramoff1 for spotting this - fix possible regression with different interface protocols - bump PKG_RELEASE
SVN-Revision: 15042
15 years ago
Jo-Philipp Wich 7e6c947e4b sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpa
SVN-Revision: 15028
15 years ago
Jose Vasconcellos 58b8cdb5fd Use block events for the mounting/unmounting of external storage devices. This handles both USB and IEEE1394 devices. It removes /sbin/usb-storage in favor of using the block hotplug event. There are dummy scripts to handle the plug in/out of USB and IEEE1394 devices for updating LEDs. Storage devices are mount as a sub-directory under /mnt.
SVN-Revision: 14289
16 years ago
Felix Fietkau 7ac69660fe fix ifup (no longer use the to-be-reverted state of the previous config)
SVN-Revision: 13398
16 years ago
Travis Kemen 6103f88358 remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no longer in the config get cleared
SVN-Revision: 13082
16 years ago
Felix Fietkau a4f11ca22e use pidfiles for hostapd/wpa_supplicant instead of killing all processes when bringing an interface down - fixes an issue with random hostapd death
SVN-Revision: 13078
16 years ago
Felix Fietkau c0e753bcdc make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted
SVN-Revision: 13026
16 years ago
Felix Fietkau 2b2884293a add option in sysupgrade to restore config from file or URL (patch from #4043)
SVN-Revision: 12772
16 years ago
Felix Fietkau e2daafdb1d fix typo from last sysupgrade commit
SVN-Revision: 12715
16 years ago
Travis Kemen 3770c99cf8 add switch to not save configuration over the reflash in noninteractive mode
SVN-Revision: 12714
16 years ago
Travis Kemen 91d3e6b05b make option name optional
SVN-Revision: 12585
16 years ago
Felix Fietkau 22585e578b sysupgrade: add optional delay before rebooting
SVN-Revision: 12572
16 years ago
Steven Barth 5a4e88710b Prevent unwanted shell expansion
SVN-Revision: 12568
16 years ago
John Crispin 6eefb5071d fixes script that mounts usd storage when it gets attached
SVN-Revision: 12548
16 years ago
John Crispin 38516cd780 fixes usb storage mounting
SVN-Revision: 12465
16 years ago
Travis Kemen b3b5e54099 add /etc/firewall.user to be backed up becuase it is an example in /etc/config/firewall
SVN-Revision: 12326
16 years ago
Travis Kemen 0b2111d1fb remove /etc/firewall.* from being kept as they no longer are used in trunk
SVN-Revision: 12320
16 years ago
Felix Fietkau c05eb4ba63 add basic interface alias support. for now (since we don't use ip in our network scripts yet), it adds :1, :2, ... alias interfaces this will change when we add support for the ip utility, but the config format will remain the same. example:
config alias     test
option interface lan
option ipaddr    192.168.1.1
option netmask   255.255.0.0

SVN-Revision: 12241
16 years ago
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
16 years ago
Felix Fietkau 8ff90e326e network scripts: revert the network state after running ifdown, not before
SVN-Revision: 12081
16 years ago
Travis Kemen 0425daa86d keep /etc/group over reflash as well
SVN-Revision: 11919
16 years ago
Travis Kemen f20dd0803c add dropbear keys, passwd and firewall configuration to be saved during reflash
SVN-Revision: 11912
16 years ago
Felix Fietkau 0cf1a58282 Here comes the new UCI. Enjoy :)
SVN-Revision: 10367
17 years ago
Gabor Juhos 5fb714cca9 base-files: suppress error messages in usb-storage script
SVN-Revision: 9498
17 years ago
Felix Fietkau f7ff1d6d0f fix a few issues with dynamically assigned interfaces
SVN-Revision: 8765
17 years ago
Felix Fietkau 1e38527a52 add sysupgrade script for config preserving system upgrades. only implemented for x86-2.6 at the moment, but can be ported to other platforms easily
SVN-Revision: 8456
17 years ago
Felix Fietkau b085680b96 tab/whitespace fix
SVN-Revision: 8338
17 years ago
Felix Fietkau 600d29f61e fix an error message
SVN-Revision: 8109
17 years ago
Felix Fietkau b13426e21b keep track of the wifi interface state in /var/state/wireless
SVN-Revision: 8108
17 years ago
Felix Fietkau e58d9626f2 add a workaround for the hostapd killed issue when using more than one wifi card (#1928, #2040)
SVN-Revision: 8077
17 years ago
Mike Baker bab458186d fix usb-storage permissions
SVN-Revision: 7889
17 years ago
John Crispin 2fe37ccdf6 added usb-storage hotpluging
SVN-Revision: 7684
17 years ago
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
17 years ago
Felix Fietkau 90d54c0faa more fixes
SVN-Revision: 7639
17 years ago
Mike Baker 40071deb7a mount_root should only mount the root
SVN-Revision: 7418
17 years ago
Florian Fainelli 5cbadc89e7 Fix set_state preinit stuff
SVN-Revision: 7200
17 years ago
Mike Baker e4c6078c67 clean up the mtd unlocking
SVN-Revision: 7199
17 years ago
Mike Baker 4bc5cb30d3 tweaks for 2M devices
SVN-Revision: 7179
17 years ago
Mike Baker 5fa3d90c46 fix bug in mount script
SVN-Revision: 7177
17 years ago
Mike Baker 3fda1fbf87 cleanup the broadcom preinit.arch
SVN-Revision: 7176
17 years ago
Mike Baker 4a41439c46 unified preinit environment
SVN-Revision: 7173
17 years ago
Felix Fietkau ca7a815602 use hotplug2 for serializing hotplug events on 2.6
SVN-Revision: 7097
17 years ago
Felix Fietkau 5f4b17b53f fix ifdown hotplug event (#1576)
SVN-Revision: 6950
17 years ago
Felix Fietkau 6d47d3ae11 fix bogus "interface not found" errors in ifup -a (#1580)
SVN-Revision: 6949
17 years ago
Florian Fainelli 2266aad2ec Limit the number of hotplug childrens
SVN-Revision: 6804
17 years ago
Felix Fietkau 7326a8beb5 /sbin/hotplug-call: export the hotplug event type through the environment for hotplug scripts
SVN-Revision: 6768
17 years ago
Felix Fietkau 2954f04b41 small cleanup
SVN-Revision: 6663
17 years ago
Mike Baker a738f566e6 add a new 'option disabled' to wifi-device
SVN-Revision: 6576
17 years ago
Felix Fietkau 4af390ee76 add vga console support for x86-2.6 images (fixes #1342, #840)
SVN-Revision: 6530
17 years ago
Felix Fietkau a44c286fdb nuke mdev and replace it with hotplug2 :)
SVN-Revision: 6512
17 years ago
Felix Fietkau eb83bc789a only mount sysfs once (thx, ejka)
SVN-Revision: 6504
17 years ago
Felix Fietkau c96e173c28 add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
SVN-Revision: 6481
17 years ago
Felix Fietkau df228a5d99 don't run mdev on hotplug pseudo-events that come from user space
SVN-Revision: 6480
17 years ago
Imre Kaloz 662fde9077 R.I.P. devfs
SVN-Revision: 6478
17 years ago
Felix Fietkau 84bec9f9cf add support for if{down,up} -a and implement proper start/stop/restart for /etc/init.d/network
SVN-Revision: 6455
17 years ago
Felix Fietkau 68ca8e7818 make squashfs overlay support more generic and integrate it for x86-2.6
SVN-Revision: 6450
17 years ago
Felix Fietkau 4215478ffe move config_get_bool from /sbin/wifi to /etc/functions.sh
SVN-Revision: 6407
17 years ago
Felix Fietkau 271a77fa90 fix typos in ifdown (patch from #1319)
SVN-Revision: 6272
18 years ago
Felix Fietkau 20e82c48ef fix typo in /sbin/wifi (#1016 - thanks, dairiki)
SVN-Revision: 5689
18 years ago
Felix Fietkau 59a06c71cb rename default/ to files/
SVN-Revision: 5622
18 years ago