diff options
author | John Crispin <blogic@openwrt.org> | 2014-10-20 06:29:05 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-10-20 06:29:05 +0000 |
commit | c23daabb8c455dcc940aacb55db484e62a405c89 (patch) | |
tree | 7b530543adc75745d92f94074ca31a5a7069bcc9 /package/base-files/files/etc | |
parent | 9b1894c42f3716dea5b46536b2b0a350b86df5a7 (diff) | |
download | master-187ad058-c23daabb8c455dcc940aacb55db484e62a405c89.tar.gz master-187ad058-c23daabb8c455dcc940aacb55db484e62a405c89.tar.bz2 master-187ad058-c23daabb8c455dcc940aacb55db484e62a405c89.zip |
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
Diffstat (limited to 'package/base-files/files/etc')
-rw-r--r-- | package/base-files/files/etc/banner.failsafe | 13 | ||||
-rw-r--r-- | package/base-files/files/etc/profile | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/package/base-files/files/etc/banner.failsafe b/package/base-files/files/etc/banner.failsafe new file mode 100644 index 0000000000..14615e1ef7 --- /dev/null +++ b/package/base-files/files/etc/banner.failsafe @@ -0,0 +1,13 @@ +================= 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 +======================================================= + diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile index e9a7119f1a..3dd58e14f2 100644 --- a/package/base-files/files/etc/profile +++ b/package/base-files/files/etc/profile @@ -1,5 +1,6 @@ #!/bin/sh [ -f /etc/banner ] && cat /etc/banner +[ -e /tmp/.failsafe ] && cat /etc/banner.failsafe export PATH=/usr/bin:/usr/sbin:/bin:/sbin export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) |