Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)]
* John Crispin j...@phrozen.org [12.04.2013 22:19]: let me fix up the wording a bit and push a slightly different version of the patch ;) anything i can help with this patch? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)]
Bump. please apply or describe open problems. - Forwarded message from Bastian Bittorf bitt...@bluebottle.com - Date: Tue, 19 Feb 2013 17:44:00 +0100 From: Bastian Bittorf bitt...@bluebottle.com To: OpenWrt Development List openwrt-devel@lists.openwrt.org Subject: Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed) * Jonas Gorski j...@openwrt.org [19.02.2013 17:00]: 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:. thanks for feedback - amended patch attached bye, bastian From 142568572a48698eb6d07affbb4cc5d6f73b00da Mon Sep 17 00:00:00 2001 From: Bastian Bittorf bitt...@bluebottle.com Date: Sun, 17 Feb 2013 12:08:53 +0100 Subject: [PATCH] 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 helpless in such a seldom situation. Also: likely you have no internet access in this mode, so you cannot use the wiki. Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/etc/banner.failsafe | 14 ++ package/base-files/files/etc/profile |1 + 2 files changed, 15 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 000..7804ded --- /dev/null +++ b/package/base-files/files/etc/banner.failsafe @@ -0,0 +1,14 @@ +=== FAILSAFE MODE active + some useful commands: + * firstboot reset settings to factory defaults + * mount_root mounts partition with config files + after mount_root: + * passwd reset root's password + * /etc/config directory with config files + leave system with: + * reboot -f reboots router + + 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 - End forwarded message - ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)]
* John Crispin j...@phrozen.org [12.04.2013 21:38]: +=== FAILSAFE MODE active + some useful commands: nitpick: what makes them more useful than other commands ? useful seems to be a superfluous adjective failsafe mode is very restricted, so there is not much senseful to do. we can abbr. it: 'some commands' ? + * firstboot reset settings to factory defaults + * mount_root mounts partition with config files the FS is called root not the one with config files this help is especially for the non-experts, so easy words. maybe: 'mounts root partition including config files' ? + after mount_root: + * passwd reset root's password + * /etc/configdirectory with config files + leave system with: maybe reboot the system ? ... we are rebooting it and not leaving it ok + * reboot -f reboots router + + please also respect: weird choice of wording more info can be found in the wiki are you a native speaker? so i should thrust you 8-) (i'am not!). thanks for your feedback. bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)]
let me fix up the wording a bit and push a slightly different version of the patch ;) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)
* Bastian Bittorf bitt...@bluebottle.com [19.02.2013 17:44]: thanks for feedback - amended patch attached bump. any problems regarding the patch? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)
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 000..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/configdirectory 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
Re: [OpenWrt-Devel] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)
* Jonas Gorski j...@openwrt.org [19.02.2013 17:00]: 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:. thanks for feedback - amended patch attached bye, bastian From 142568572a48698eb6d07affbb4cc5d6f73b00da Mon Sep 17 00:00:00 2001 From: Bastian Bittorf bitt...@bluebottle.com Date: Sun, 17 Feb 2013 12:08:53 +0100 Subject: [PATCH] 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 helpless in such a seldom situation. Also: likely you have no internet access in this mode, so you cannot use the wiki. Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/base-files/files/etc/banner.failsafe | 14 ++ package/base-files/files/etc/profile |1 + 2 files changed, 15 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 000..7804ded --- /dev/null +++ b/package/base-files/files/etc/banner.failsafe @@ -0,0 +1,14 @@ +=== FAILSAFE MODE active + some useful commands: + * firstboot reset settings to factory defaults + * mount_root mounts partition with config files + after mount_root: + * passwd reset root's password + * /etc/config directory with config files + leave system with: + * reboot -f reboots router + + 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] [PATCH] [base-files] Failsafe-mode: print short help on commandline (signed)
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. 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 000..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/configdirectory with config files + * firstboot reset settings to factory defaults + * passwd reset root's password + * reboot -f reboots router + + 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