Hi all,

I've been working on the dgn3500 implementation and I have a patch that fully 
supports this platform. I need advice on an init script to load the eeprom from 
user-space:

+#!/bin/sh /etc/rc.common
+# Copyright (C) 2012 Pieter Voorthuijsen
+
+START=04
+start() {
+       echo "Loading eeprom into platform data"
+       dd if=/dev/mtd2 of=/sys/firmware/ath_eeprom bs=1k skip=60 count=4
+       echo 0 > /sys/bus/pci/slots/0000\:00\:0e.0/power
+       sleep 1
+       echo 1 > /sys/bus/pci/rescan
+}
+

I want to place this in rc.d (S04athfixup), is that the right spot?
Right now the code runs for all lantiq boards, can I detect the board in this 
stage?

Kind regards,
Pieter
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to