Hi, On 17 February 2013 13:11, Bastian Bittorf <bitt...@bluebottle.com> wrote: > 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 in such a > seldom situation. Also: likely you have no internet access > in this mode, so you cannot use the wiki.
I like the idea. There's nothing wrong with being more user friendly :-) > Signed-off-by: Bastian Bittorf <bitt...@bluebottle.com> > > --- > package/base-files/files/etc/banner.failsafe | 11 +++++++++++ > package/base-files/files/etc/profile | 1 + > 2 files changed, 12 insertions(+), 0 deletions(-) > create mode 100644 package/base-files/files/etc/banner.failsafe > > diff --git a/package/base-files/files/etc/banner.failsafe > b/package/base-files/files/etc/banner.failsafe > new file mode 100644 > index 0000000..444cc6c > --- /dev/null > +++ b/package/base-files/files/etc/banner.failsafe > @@ -0,0 +1,11 @@ > +================== FAILSAFE MODE ==================== > + * mount_root mounts partition with config files > + * /etc/config directory with config files > + * firstboot reset settings to factory defaults > + * passwd reset root's password > + * reboot -f reboots router The order looks a bit random. I'd put firstboot to top, then mount_root (maybe separated with an extra line with "or"), then below that passwd and /etc/config with mentioning that these are only available after running mount_root. reboot -f can stay last, as it's usually the last thing you do ;-). Maybe also a short intro line, like "Some useful commands:". > + > + please also respect: > + 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 171adc1..41b8e80 100644 > --- a/package/base-files/files/etc/profile > +++ b/package/base-files/files/etc/profile > @@ -1,4 +1,5 @@ > #!/bin/sh > +[ -f /tmp/.failsafe -a -f /etc/banner.failsafe ] && cat /etc/banner.failsafe > [ -f /etc/banner ] && cat /etc/banner > > export PATH=/bin:/sbin:/usr/bin:/usr/sbin > -- > 1.7.2.5 > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel