aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
Commit message (Collapse)AuthorAgeFilesLines
* base-file: remove /tmp/.jail (now useless)John Crispin2015-12-111-1/+0
| | | | | | Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47855 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: use max_brightness to set LEDJohn Crispin2015-12-111-1/+1
| | | | | | | | | | LEDs which are controlled by a PWM need to use the supplied max_brightness instead. Otherwise they might appear to be very dim / broken. Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47854 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: show hint when JFFS2-partition is full and overlayfs mounted ↵John Crispin2015-11-241-0/+4
| | | | | | | | | | | | | | | | | read-only since r45833 and r45848 the overlayfs is automatically mounted read-only (and blocks remounts as r/w) when JFFS2 is full. see ticket #19564 because of this normal file deletion is not possible anymore. if a user logins interactively (e.g. SSH) show a hint for this, that files must be removed in /overlay/upper/... v2: fix subject line Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47623 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add DCCP to /etc/protocolsHauke Mehrtens2015-11-151-0/+1
| | | | | | | | | | Fixes this conntrackd warning: WARNING: getprotobyname() cannot find protocol `DCCP' in /etc/protocols Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47481 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: create /var/tmp on bootJohn Crispin2015-10-191-0/+1
| | | | | | | | | | | FHS mandates presence of /var/tmp on compliant systems. The lack of /var/tmp was discovered when using MIT Kerberos libraries which default to that location for storing credentials cache. Signed-off-by: Paul Fertser <fercerpav@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47219 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: revert to default ECN settingsSteven Barth2015-10-071-1/+0
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47160 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add URL option for OEM manufacturer infoJohn Crispin2015-10-051-0/+1
| | | | | | | | | This URL can be embedded e.g. within UPnP announcements where a link to the manufacturer's homepage is desired. Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47135 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: sanitize and unify $PATHSteven Barth2015-10-022-3/+3
| | | | | | | | Previously init and hotplug paths were different from console. Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47080 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add /etc/profile.d supportJohn Crispin2015-09-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | OpenWrt should support an optional /etc/profile.d directory like most other Linux distributions. This allows packages to install their own scripts into /etc/profile.d/ directory. The file suffix should make clear, that these scripts are (sourced) shell-snippets. If the user needs e.g. php or lua, one must make sure that the interpreter is called. The reverse failsafe test makes sure, that the effective returncode is 0. A typcal usecase is the inclusion of private helpers, special variables or aliases, which at the moment needs patching the sourcecode and is not well maintainable. Now the builder can simply add there files. v1 initial work of Hendrik Lüth <hendrik@linux-nerds.de> v2 changes regarding RFC (e.g. thomas.langer@lantiq.com) v3 changes regarding RFC (e.g. mschiffer@universe-factory.net) v4 keep it simple and mimic OpenWrt style Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46965 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix typo in core dump pattern sysctl entry (fixes #20489)Felix Fietkau2015-09-121-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46890 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: set kernel.core_pattern in sysctl.confFelix Fietkau2015-09-111-0/+2
| | | | | | | | | | Move the pattern setting from netifd's service script to /etc/sysctl.conf. Put the timestamp component '%t' just after executable name '%e' for more natural order from output of ls command. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46867 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: change banner to Designated Driver releaseRafał Miłecki2015-09-111-6/+5
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46846 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add /etc/iproute2/rt_tables, replace ifconfig-usageSteven Barth2015-09-081-0/+11
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46830 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add /etc/hosts entries for ::1, ff02::1 and ff02::2Jo-Philipp Wich2015-09-021-0/+4
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46771 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: rework reset button script to indicate factory resetJohn Crispin2015-08-171-14/+21
| | | | | | | | | With this change we let user know 5 seconds have passed and reset button can be released (to trigger factory reset) Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46650 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: buttons: make power script return 0Rafał Miłecki2015-08-121-0/+2
| | | | | | | | It was missed in the r46471. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46582 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buttons: make all button handler scripts return 0John Crispin2015-07-243-0/+6
| | | | | | | | this is required by the new button timeout feature Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46471 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix /tmp/.jail permissionsJohn Crispin2015-07-241-1/+0
| | | | | | | | | | | We need a+x rights on the path to the root of the jails so we can use users other than root (like nobody) This partly fixes jailed dnsmasq Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46466 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: added option to configure the gpio led trigger in uci-defaultsJohn Crispin2015-07-141-0/+7
| | | | | | Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46341 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: implemented basic GPIO controlJohn Crispin2015-07-081-0/+42
| | | | | | | | | | Internal GPIO pins are used for PoE passthrough setups in multi-port routers. This patch implemnets control over this hardware feature for Ubiquiti Nanostations and TP-Link CPE510. Signed-off-by: Lars Kruse <lists@sumpfralle.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46271 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sysctl: read settings from /etc/sysctl.d/*.confJohn Crispin2015-07-073-4/+10
| | | | | | | | | This changes makes it possible to store custom settings in individual files inside the directory /etc/sysctl.d/. Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46239 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add openwrt snapshot keyFelix Fietkau2015-06-051-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix logic error in led default handling (patch from #19593)Felix Fietkau2015-05-031-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45600 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: reorder led trigger/brightness writesFelix Fietkau2015-04-161-7/+10
| | | | | | | | | Depending on configuration, disable the LED before writing the trigger and enable it after writing it. Fixes LEDs where the value defaults to 1 Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45463 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add a init.d option that will start the syscall tracerJohn Crispin2015-03-261-1/+6
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45009 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: create jail folder on bootJohn Crispin2015-03-261-0/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45008 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fstools: update to the latest version, makes interrupted first boot more ↵Felix Fietkau2015-03-221-1/+1
| | | | | | | | | | | | | reliable Use xattr to store the filesystem initialization state of the overlay. As long as the filesystem is not marked as initialized yet (happens in /etc/init.d/done), all overlay data (except for sysupgrade.tgz) will be discarded before the system is allowed to boot Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44942 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: keep sysupgrade.tgz until /etc/init.d/done has been calledFelix Fietkau2015-03-221-0/+1
| | | | | | | | This makes interrupted boots after sysupgrade more reliable Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44941 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: remove the netfilter optimization that skips the filter table, it ↵Felix Fietkau2015-03-171-1/+0
| | | | | | | | has caused too many issues Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44873 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix led script to skip missing triggersJohn Crispin2015-01-231-1/+5
| | | | | | | | this is based on http://patchwork.ozlabs.org/patch/424451/ Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44087 3c298f89-4303-0410-b956-a3cf2f4a3e73
* failsafe-mode: print short help on commandlineJohn Crispin2014-10-202-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [base-files] failsafe-mode: print short help on commandline Like mentioned in ticket https://dev.openwrt.org/ticket/11911 this should make the IRC much quieter. Failsafe is somehow special and even experienced users are helpless, because they are not used to this seldom situation. Also: likely you have no internet access in this mode, so you cannot use the wiki. a failsafe-session now looks like this: first we see from 'package/base-files/files/bin/login.sh' the hint: === IMPORTANT ============================ Use 'passwd' to set your login password this will disable telnet and enable SSH ------------------------------------------ after this the /etc/banner ("OpenWrt - wireless freedom") and then the new text: ================= FAILSAFE MODE active ================ special commands: * firstboot reset settings to factory defaults * mount_root mount root-partition with config files after mount_root: * passwd change root's password * /etc/config directory with config files for more help see: http://wiki.openwrt.org/doc/howto/generic.failsafe ======================================================= this supersedes the old patches: http://patchwork.openwrt.org/patch/3337/ http://patchwork.openwrt.org/patch/3553/ Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* network: Unbind DHCPv6 from underlying interfacesSteven Barth2014-10-081-4/+0
| | | | | | | | | This allows IPv6 to set up without IPv4 being up thus IPv6-only or IPv6+DS-Lite working with the default config. Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42848 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: remove a 'not found' error message during system bootSteven Barth2014-10-031-1/+1
| | | | | | | | | | | During boot, a not found message is displayed for systems which do not have uci 'network.globals.ula_prefix' defined in /etc/config/network. The error message itself is not used and can be ignored. Signed-off-by: Michel Stam <m.stam@fugro.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42755 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: increase igmp_max_memberships to improve multicast-proxy handlingSteven Barth2014-08-201-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42227 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add a hardware detection layerJohn Crispin2014-08-181-0/+1
| | | | | | | | | | this allows targets to use the new uci-default helper which will generate a file called /etc/board.json. a tool called /bin/config_generate can then be used to generate the default uci settings. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42185 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: enable option to skip the netfilter "filter" table for ↵Felix Fietkau2014-08-071-0/+1
| | | | | | | | established connection packets by default Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42048 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: properly escape strings for version infoFelix Fietkau2014-07-292-10/+10
| | | | | | | | | Make sure they don't break the sed command, and also make device_info and openwrt_release more robust for parsing by scripts Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41885 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add extra version configuration options for OEM manufacturer infoFelix Fietkau2014-07-291-0/+3
| | | | | | | | | | | Creates /etc/device_info which will be used to fill in information for WPS and other protocols that need manufacturer/device information This helps with creating OpenWrt firmware for OEM or rebranded devices. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41884 3c298f89-4303-0410-b956-a3cf2f4a3e73
* BB is branched, get ready for Chaos CalmerImre Kaloz2014-07-291-5/+6
| | | | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41870 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: Remove stale calls to start() in initscripts.John Crispin2014-07-261-2/+0
| | | | | | | | based on http://patchwork.openwrt.org/patch/5969/ Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41840 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: adjust the default netfilter tcp established connection timeout ↵Felix Fietkau2014-07-131-1/+1
| | | | | | | | as per RFC 5382 (#17098) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41599 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rc.common: when reloading a service using procd, fall back to calling start ↵Felix Fietkau2014-07-031-1/+1
| | | | | | | | | | instead of restart This avoids unnecessary service restarts Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41490 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add enabled config option for ntp serviceJohn Crispin2014-06-271-0/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41354 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add a post start hook to the procd init.d apiJohn Crispin2014-06-261-0/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41344 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: update copyright headersLuka Perkov2014-06-241-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41334 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix argument order to date in sysfixtime so that it also works ↵Felix Fietkau2014-06-071-1/+1
| | | | | | | | | | | with musl Seems like the reverse order relies on GNU specific getopt hackery which musl does not replicate Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41045 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: /etc/rc.button/power should be executableJohn Crispin2014-06-031-0/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40993 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add simple shutdown scriptJohn Crispin2014-06-021-0/+5
| | | | | | | | | | | | | Since svn rev [38557] we support power buttons, for example the ACPI power button on x86 machines. Add a simple shutdown script to /etc/rc.button, to gracefully shutdown the machine after the power button is pressed. Tested on x86 and x86_64 in a kvm virtual machine. Signed-off-by: Stefan Hellermann <stefan@the2masters.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40909 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: calling stop_service before procd_kill.John Crispin2014-06-021-1/+1
| | | | | | | | | | | | Before this patch, doing `/e/c/network restart' will emit the folloing error by `ubus network.wireless down "{}"' because netifd already quit by that time. Command failed: not found Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40906 3c298f89-4303-0410-b956-a3cf2f4a3e73