[Zrouter-src] ZRouter.org: push to ZRouter profiles/SMALL_/files/etc/rc
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Sun Feb 5 00:31:44 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/ed2ce8f40167
changeset: 337:ed2ce8f40167
user: ray at terran.dlink.ua
date: Sun Feb 05 01:32:48 2012 +0200
description:
hide status LED control under [ -c dev ] query.
diffstat:
profiles/SMALL_/files/etc/rc | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r da19040d75c5 -r ed2ce8f40167 profiles/SMALL_/files/etc/rc
--- a/profiles/SMALL_/files/etc/rc Fri Feb 03 17:35:07 2012 +0200
+++ b/profiles/SMALL_/files/etc/rc Sun Feb 05 01:32:48 2012 +0200
@@ -7,7 +7,9 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export HOME PATH
-echo f1 > /dev/led/status
+if [ -c /dev/led/status ]; then
+ echo f1 > /dev/led/status
+fi
if [ "$1" = autoboot ]; then
autoboot=yes
@@ -48,6 +50,8 @@
date
-echo f9 > /dev/led/status
+if [ -c /dev/led/status ]; then
+ echo f9 > /dev/led/status
+fi
exit 0
More information about the Zrouter-src
mailing list