failsafe-mode: print short help on commandline
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 20 Oct 2014 06:29:05 +0000 (06:29 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 20 Oct 2014 06:29:05 +0000 (06:29 +0000)
commitbb78da838399610ddf03e560d354c830f0626c05
tree7b530543adc75745d92f94074ca31a5a7069bcc9
parent5c648b89d7f3a6a984e64faad9a016db49f0745b
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42985 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/etc/banner.failsafe [new file with mode: 0644]
package/base-files/files/etc/profile