[Zrouter-src] ZRouter.org: push to ZRouter boards/D-Link/DSR-1000/TODO boards/...
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Mon Feb 6 12:53:52 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/0e06b112d280
changeset: 346:0e06b112d280
user: ray at terran.dlink.ua
date: Mon Feb 06 14:38:58 2012 +0200
description:
Add forgotten files
diffstat:
boards/D-Link/DSR-1000/TODO | 2 +
boards/D-Link/DSR-1000/files/etc/rc.d/ADAPTATION | 51 ++++++++++++++++++++++++
boards/D-Link/DSR-500/TODO | 2 +
boards/D-Link/DSR-500N/TODO | 2 +
boards/D-Link/DSR-500N/files/etc/rc.d/ADAPTATION | 51 ++++++++++++++++++++++++
5 files changed, 108 insertions(+), 0 deletions(-)
diffs (133 lines):
diff -r edb53bdecced -r 0e06b112d280 boards/D-Link/DSR-1000/TODO
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-1000/TODO Mon Feb 06 14:38:58 2012 +0200
@@ -0,0 +1,2 @@
+1. Fix PCI
+2. Add interrupt support to GPIO
\ No newline at end of file
diff -r edb53bdecced -r 0e06b112d280 boards/D-Link/DSR-1000/files/etc/rc.d/ADAPTATION
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-1000/files/etc/rc.d/ADAPTATION Mon Feb 06 14:38:58 2012 +0200
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# PROVIDE: ADAPTATION
+
+. /etc/rc.subr
+. /etc/network.subr
+
+name="ADAPTATION"
+start_cmd="adapt_start"
+start_precmd="adapt_prestart"
+start_postcmd="adapt_poststart"
+stop_cmd="adapt_stop"
+
+adapt_prestart()
+{
+ # Switch confugred by own EEPROM
+
+ # Example GPIO
+ #gpioctl -f /dev/gpioc0 -c 10 IN II PU INT
+
+ # Import MAC addresses with known names
+# kenv LAN_MAC_ADDR=`kenv ethaddr`
+# kenv WAN_MAC_ADDR=`kenv wanmac`
+
+ ifconfig octe0 name lan0
+ ifconfig octe1 name wan1
+ ifconfig octe2 name wan0
+
+# ifconfig lan0 ether `kenv LAN_MAC_ADDR`
+# ifconfig wan0 ether `kenv WAN_MAC_ADDR`
+
+# hostname `kenv HostName`
+ hostname DSR-1000
+
+}
+
+adapt_start()
+{
+}
+
+adapt_poststart()
+{
+}
+
+adapt_stop()
+{
+}
+
+load_rc_config $name
+
+run_rc_command $*
\ No newline at end of file
diff -r edb53bdecced -r 0e06b112d280 boards/D-Link/DSR-500/TODO
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-500/TODO Mon Feb 06 14:38:58 2012 +0200
@@ -0,0 +1,2 @@
+1. Fix PCI
+2. Add interrupt support to GPIO
\ No newline at end of file
diff -r edb53bdecced -r 0e06b112d280 boards/D-Link/DSR-500N/TODO
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-500N/TODO Mon Feb 06 14:38:58 2012 +0200
@@ -0,0 +1,2 @@
+1. Fix PCI
+2. Add interrupt support to GPIO
\ No newline at end of file
diff -r edb53bdecced -r 0e06b112d280 boards/D-Link/DSR-500N/files/etc/rc.d/ADAPTATION
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-500N/files/etc/rc.d/ADAPTATION Mon Feb 06 14:38:58 2012 +0200
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# PROVIDE: ADAPTATION
+
+. /etc/rc.subr
+. /etc/network.subr
+
+name="ADAPTATION"
+start_cmd="adapt_start"
+start_precmd="adapt_prestart"
+start_postcmd="adapt_poststart"
+stop_cmd="adapt_stop"
+
+adapt_prestart()
+{
+ # Switch confugred by own EEPROM
+
+ # Example GPIO
+ #gpioctl -f /dev/gpioc0 -c 10 IN II PU INT
+
+ # Import MAC addresses with known names
+# kenv LAN_MAC_ADDR=`kenv ethaddr`
+# kenv WAN_MAC_ADDR=`kenv wanmac`
+
+ ifconfig octe0 name lan0
+ ifconfig octe1 name wan1
+ ifconfig octe2 name wan0
+
+# ifconfig lan0 ether `kenv LAN_MAC_ADDR`
+# ifconfig wan0 ether `kenv WAN_MAC_ADDR`
+
+# hostname `kenv HostName`
+ hostname DSR-500N
+
+}
+
+adapt_start()
+{
+}
+
+adapt_poststart()
+{
+}
+
+adapt_stop()
+{
+}
+
+load_rc_config $name
+
+run_rc_command $*
\ No newline at end of file
More information about the Zrouter-src
mailing list