[Zrouter-src] ZRouter.org: push to ZRouter profiles/SMALL_/files/etc/rc.d/MAIN

zrouter-src at zrouter.org zrouter-src at zrouter.org
Wed Dec 14 11:26:29 UTC 2011


details:   http://zrouter.org/hg/zrouter//rev/9cc636604815
changeset: 276:9cc636604815
user:      ray at terran.dlink.ua
date:      Wed Dec 14 13:05:40 2011 +0200
description:
allow use GEOM_REDBOOT config partition

diffstat:

 profiles/SMALL_/files/etc/rc.d/MAIN |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 54eaf8c60356 -r 9cc636604815 profiles/SMALL_/files/etc/rc.d/MAIN
--- a/profiles/SMALL_/files/etc/rc.d/MAIN	Wed Dec 14 12:51:16 2011 +0200
+++ b/profiles/SMALL_/files/etc/rc.d/MAIN	Wed Dec 14 13:05:40 2011 +0200
@@ -37,6 +37,11 @@
 	if [ -c /dev/map/config ]; then 
 		dd if=/dev/map/config of=/tmp/etc.tar.gz;
 		cd /tmp/ && tar xvzf /tmp/etc.tar.gz
+	else
+		if [ -c /dev/redboot/config ]; then 
+			dd if=/dev/redboot/config of=/tmp/etc.tar.gz;
+			cd /tmp/ && tar xvzf /tmp/etc.tar.gz
+		fi
 	fi
 
 	kldload ipfw


More information about the Zrouter-src mailing list