Commit Graph

388 Commits (9e7e0ecbd4dde533409a3c6840b202e25245e79d)

Author SHA1 Message Date
Felix Fietkau 1c45a560a2 init: check permissions on rc.d files
We try to unconditionally execute /etc/rc.d/* files, even if they're
not executable - an easy way of temproarily disabling a service. When
this happens, we get a permission denied error on boot.

This change only tries to run execulable startup scripts.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9607 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-28 02:36:14 +00:00
Felix Fietkau b4163899b1 init: don't start hotplug2 if it doesn't exist
The current init script always tries to start hotplug 2, even if
it's not present, so we get an error on boot.

This change checks for the presence of the hotplug2 binary before
trying to start it.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9606 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-28 02:36:10 +00:00
Florian Fainelli db937a2c6c Allow specifying static IPv6 gateways (#2710)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-16 07:27:59 +00:00
Felix Fietkau 3937f1653c add support for interfaces with ipv6, but no ipv4 (patch from #2695)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-12 16:29:08 +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
Gabor Juhos dea6b7aaac [packages] 6tunnel: move init/config files to the right place
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9453 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-27 07:12:13 +00:00
Florian Fainelli f11fa6c3e7 Enable IPv6 forwarding by default (#2527)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9435 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-24 18:44:07 +00:00
Florian Fainelli f715eab564 Mark 6tunnel as executable, avoids ": /etc/init.d/rcS: line 8: /etc/rc.d/S466tunnel: Permission denied"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9424 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-24 13:42:15 +00:00
Florian Fainelli effcc21eb7 Turn off stp by default, thanks ejka
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-18 13:20:02 +00:00
Florian Fainelli b6a1b8edd1 Turn on stp by default for bridges (#2476)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9343 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-18 13:07:28 +00:00
Florian Fainelli fdcffc4ae7 Add route6 option to setup IPv6 routes (#2528)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9337 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-16 15:05:19 +00:00
John Crispin d60753c5ec fixed 1677
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-14 06:12:29 +00:00
Florian Fainelli b809f6233e Add 6tunnel configuration for tunnel brokers based configuration (not SiXXS), disabled by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9259 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-11 09:01:38 +00:00
Travis Kemen a8eb7c1763 add clientid to udhcpc thanks pjama
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-06 03:12:04 +00:00
Felix Fietkau 6f64a83acb fix path to the snapshot packages (snapshot build/upload needs to be fixed as well)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9083 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-30 21:29:55 +00:00
Gabor Juhos 9233c3cdb9 get rid of per-profile base-files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9069 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-29 14:27:54 +00:00
Rod Whitby b0831189f9 base-files: Added support for swap configuration in /etc/config/fstab
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-22 13:47:20 +00:00
Rod Whitby 4c56c3a088 Added support for /etc/default/fstab - a means of automatically mounting devices on boot.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8916 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-21 13:20:50 +00:00
Felix Fietkau 3842e188da add --no-coldplug to the hotplug2 process started by /etc/init.d/boot - should prevent duplicate ifup actions. thx, ffrrrr.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8864 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-20 10:19:24 +00:00
John Crispin 2c41016d04 made HOME=/root global instead of x86 specific
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-19 19:58:07 +00:00
Felix Fietkau 4e5964b095 sync awk implementation of config_get_bool with the shell variant
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8841 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-19 15:36:30 +00:00
Felix Fietkau 7e4e3831d1 support true and false in config_get_bool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8840 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-19 14:43:29 +00:00
Florian Fainelli 1192538019 Revert the InstallDev section, was only there testing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8787 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-16 10:24:10 +00:00
Florian Fainelli 32ba50b798 Put back ldd and ldconfig (#1543)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-16 10:21:53 +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 6bcd07afdd major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-08 19:55:42 +00:00
Felix Fietkau 6ad5c919ce bump package versions after updates
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 20:41:57 +00:00
Nicolas Thill 2180fa92a1 move package description to a separate definition, remove it when DESCRIPTION=TITLE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 08:34:51 +00:00
Felix Fietkau 92558d67a4 strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-06 16:27:37 +00:00
Nicolas Thill 43bb58eaf6 package Makefile cleanup: remove uneeded vars
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8587 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-03 08:20:36 +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 d10a56dc58 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-07 00:04:25 +00:00
Felix Fietkau 09a67f8dce fix a race condition with dynamic interfaces and firewalling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8343 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-04 13:26:41 +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
John Crispin b9a57974fa wireless config gets regenerated not only when it does not exist, buit also if it is 0 len
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8149 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-24 22:10:10 +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 b1e1d37468 add patch from #2111
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-22 16:55:31 +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
Florian Fainelli 8eb5db243c libgcc is not available with host-toolchain, DEPENDS was overriden with the avr32 condition
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8038 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-18 13:50:25 +00:00
Felix Fietkau 07db8f80f9 move firmware loading to hotplug2-init.rules (should fix #2056)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7955 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-13 02:32:32 +00:00
Felix Fietkau e5bfc9ff20 use . /var/state/network instead of config_load to avoid a CONFIG_SECTIONS reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7953 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-13 00:44:41 +00:00
Felix Fietkau dbb01d5eaa avoid a race condition that might lead to dnsmasq reading an empty resolv.conf (#2007)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7952 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-12 21:59:38 +00:00
Felix Fietkau 387b9fd2b2 fix static routes for dynamic interfaces (#1446)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7949 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-12 21:23:23 +00:00
Mike Baker 0480026eb6 rename mini_fo mount point so as not to confuse users
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7928 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-11 20:46:25 +00:00
Mike Baker 9df0b3bf4b move uci_load into config_load so that changes can be applied via uci without commiting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7927 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-11 20:39:28 +00:00
Felix Fietkau ce860d9db9 add second package source for packages built from the /packages repository
fix up first package source (should be release, not snapshots on 7.07)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7897 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-09 07:09:44 +00:00
Felix Fietkau a7e1a7ae99 hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices (fixes #2052)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-09 00:13:47 +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
Mike Baker 3a10e4f56d more wpa+wds patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7888 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-08 12:51:30 +00:00