Commit Graph

57 Commits (de0ca9088d24b4b8b5e9dede80fe7eff738ae319)

Author SHA1 Message Date
Felix Fietkau 4dfe6c0658 fix ifup (no longer use the to-be-reverted state of the previous config)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13398 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-28 16:13:23 +00:00
Travis Kemen 7efe4d1cbf remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no longer in the config get cleared
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-29 20:31:14 +00:00
Felix Fietkau 382a56d914 use pidfiles for hostapd/wpa_supplicant instead of killing all processes when bringing an interface down - fixes an issue with random hostapd death
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-29 17:26:49 +00:00
Felix Fietkau ad0b1add52 make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-23 01:07:35 +00:00
Felix Fietkau c1b9ba6db4 add option in sysupgrade to restore config from file or URL (patch from #4043)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12772 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 19:45:59 +00:00
Felix Fietkau 57481bf020 fix typo from last sysupgrade commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12715 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-26 08:58:43 +00:00
Travis Kemen 98daed4072 add switch to not save configuration over the reflash in noninteractive mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12714 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-26 00:10:01 +00:00
Travis Kemen 3476a63cd2 make option name optional
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-13 00:08:39 +00:00
Felix Fietkau bd26d77953 sysupgrade: add optional delay before rebooting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12572 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-12 19:51:30 +00:00
Steven Barth cddfd99ed5 Prevent unwanted shell expansion
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-11 12:23:20 +00:00
John Crispin 9a3e938b4f fixes script that mounts usd storage when it gets attached
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12548 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-08 09:30:57 +00:00
John Crispin 206e0235ad fixes usb storage mounting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12465 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-01 17:42:35 +00:00
Travis Kemen 8c1abccd91 add /etc/firewall.user to be backed up becuase it is an example in /etc/config/firewall
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 18:01:18 +00:00
Travis Kemen 37708504cc remove /etc/firewall.* from being kept as they no longer are used in trunk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 16:04:51 +00:00
Felix Fietkau 72609e482f 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-07 15:28:48 +00:00
John Crispin 664624ac96 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



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-04 22:56:46 +00:00
Felix Fietkau abdfec5426 network scripts: revert the network state after running ifdown, not before
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-03 21:00:01 +00:00
Travis Kemen 4de53e6237 keep /etc/group over reflash as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11919 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-24 16:36:39 +00:00
Travis Kemen 89a046fb86 add dropbear keys, passwd and firewall configuration to be saved during reflash
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11912 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-24 02:24:59 +00:00
Felix Fietkau 2f8b5f8c28 Here comes the new UCI. Enjoy :)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-03 06:48:15 +00:00
Gabor Juhos a50ed31288 [packages] base-files: suppress error messages in usb-storage script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9498 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-04 15:12:08 +00:00
Felix Fietkau bd87192430 fix a few issues with dynamically assigned interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8765 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-12 17:02:34 +00:00
Felix Fietkau fe9d7531d8 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8456 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-21 18:23:57 +00:00
Felix Fietkau 4923a3c262 tab/whitespace fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8338 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-04 11:30:40 +00:00
Felix Fietkau 2ab412c4f2 fix an error message
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8109 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-22 18:46:57 +00:00
Felix Fietkau 2fd3ce45f4 keep track of the wifi interface state in /var/state/wireless
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8108 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-22 18:32:47 +00:00
Felix Fietkau a13fa65207 add a workaround for the hostapd killed issue when using more than one wifi card (#1928, #2040)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8077 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-20 16:11:46 +00:00
Mike Baker 6dfa7e8a3c fix usb-storage permissions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7889 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-08 13:23:17 +00:00
John Crispin a989402037 added usb-storage hotpluging
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7684 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-20 22:05:15 +00:00
Felix Fietkau 97ca42e813 keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-16 00:01:33 +00:00
Felix Fietkau 171557a1c1 more fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7639 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-15 16:07:09 +00:00
Mike Baker 6470efd98f mount_root should only mount the root
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7418 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-31 12:09:08 +00:00
Florian Fainelli ff31b9d4cc Fix set_state preinit stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7200 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-13 10:17:57 +00:00
Mike Baker 6532b286ba clean up the mtd unlocking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-13 09:39:21 +00:00
Mike Baker 1f6d41f082 tweaks for 2M devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7179 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 19:41:07 +00:00
Mike Baker c8e4a613e8 fix bug in mount script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7177 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 16:54:52 +00:00
Mike Baker 46201c4ab4 cleanup the broadcom preinit.arch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7176 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 16:29:15 +00:00
Mike Baker 09cdbc40d0 unified preinit environment
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7173 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 14:37:47 +00:00
Felix Fietkau 4e4050b160 use hotplug2 for serializing hotplug events on 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-05 18:33:18 +00:00
Felix Fietkau b1f2b254cb fix ifdown hotplug event (#1576)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6950 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-15 07:23:28 +00:00
Felix Fietkau 4766914d70 fix bogus "interface not found" errors in ifup -a (#1580)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6949 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-15 07:22:11 +00:00
Florian Fainelli bcb7491164 Limit the number of hotplug childrens
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-01 18:30:32 +00:00
Felix Fietkau 32d7a5ac2a /sbin/hotplug-call: export the hotplug event type through the environment for hotplug scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6768 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-31 00:59:49 +00:00
Felix Fietkau 7b76b0e987 small cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6663 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-24 13:42:53 +00:00
Mike Baker 59e316c32c add a new 'option disabled' to wifi-device
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6576 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-16 13:56:36 +00:00
Felix Fietkau 2b35413971 add vga console support for x86-2.6 images (fixes #1342, #840)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6530 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-06 19:13:40 +00:00
Felix Fietkau ae39d6a370 nuke mdev and replace it with hotplug2 :)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 20:31:53 +00:00
Felix Fietkau 8783fd8160 only mount sysfs once (thx, ejka)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6504 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 14:27:52 +00:00
Felix Fietkau 95d20db041 add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6481 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-03 22:32:13 +00:00
Felix Fietkau 75f543cfc6 don't run mdev on hotplug pseudo-events that come from user space
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6480 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-03 20:59:49 +00:00