summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/profile
Commit message (Collapse)AuthorAgeFilesLines
* base-files: sanitize and unify $PATHSteven Barth2015-10-021-1/+1
| | | | | | | | Previously init and hotplug paths were different from console. Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 47080
* 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> SVN-Revision: 46965
* failsafe-mode: print short help on commandlineJohn Crispin2014-10-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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> SVN-Revision: 42985
* base-files: change PATH orderJohn Crispin2013-06-101-1/+1
| | | | | | | | | This allows packages to override busybox applets by placing the new binaries in /usr/{sbin,bin} Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36890
* base-files: check for ldd presence and executability (#11991)Florian Fainelli2012-08-081-1/+1
| | | | SVN-Revision: 33057
* base-files: fix detection of standalone lddFlorian Fainelli2012-07-271-1/+1
| | | | | | | | When standalone ldd is selected in config the binary is installed in /usr/bin/ldd. Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 32891
* base-files: fix arp() procedure to properly detect /usr/bin/arpJo-Philipp Wich2011-08-121-1/+1
| | | | SVN-Revision: 27965
* fix $HOME in /etc/profile (#4424)Felix Fietkau2009-01-071-1/+2
| | | | SVN-Revision: 13914
* made HOME=/root global instead of x86 specificJohn Crispin2007-09-191-1/+1
| | | | SVN-Revision: 8845
* Prefer real executables when available (#1296)Florian Fainelli2007-05-141-3/+3
| | | | SVN-Revision: 7232
* add K* scripts to be run at shutdownMike Baker2007-05-101-1/+0
| | | | SVN-Revision: 7163
* move the last change to the right placeImre Kaloz2007-04-301-0/+1
| | | | SVN-Revision: 7069
* Add ldd and ldconfig support, template packages derived from gcc and uclibcFlorian Fainelli2007-04-031-1/+1
| | | | SVN-Revision: 6856
* Use MiBSD ksh if installed (#1470)Florian Fainelli2007-03-241-0/+2
| | | | SVN-Revision: 6687
* rename default/ to files/Felix Fietkau2006-11-221-0/+12
SVN-Revision: 5622