Commit Graph

13 Commits (829bf6b9a167740a2a113c5af22bce222b7fc5bd)

Author SHA1 Message Date
John Crispin 829bf6b9a1 failsafe-mode: print short help on commandline
[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
10 years ago
John Crispin 9353e01af4 base-files: change PATH order
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
11 years ago
Florian Fainelli 31e46b4293 base-files: check for ldd presence and executability (#11991)
SVN-Revision: 33057
12 years ago
Florian Fainelli 6afd1725f1 base-files: fix detection of standalone ldd
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
12 years ago
Jo-Philipp Wich aab33e2e9a base-files: fix arp() procedure to properly detect /usr/bin/arp
SVN-Revision: 27965
13 years ago
Felix Fietkau 6d27b16e2b fix $HOME in /etc/profile (#4424)
SVN-Revision: 13914
16 years ago
John Crispin f3b9e06a14 made HOME=/root global instead of x86 specific
SVN-Revision: 8845
17 years ago
Florian Fainelli 1518889ffa Prefer real executables when available (#1296)
SVN-Revision: 7232
17 years ago
Mike Baker 291420a8f3 add K* scripts to be run at shutdown
SVN-Revision: 7163
17 years ago
Imre Kaloz da547b8ab2 move the last change to the right place
SVN-Revision: 7069
17 years ago
Florian Fainelli da8174507a Add ldd and ldconfig support, template packages derived from gcc and uclibc
SVN-Revision: 6856
17 years ago
Florian Fainelli c7ce5e06da Use MiBSD ksh if installed (#1470)
SVN-Revision: 6687
17 years ago
Felix Fietkau 59a06c71cb rename default/ to files/
SVN-Revision: 5622
18 years ago