diff options
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit/.svn')
4 files changed, 230 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/.svn/entries b/target/linux/ramips/base-files/lib/preinit/.svn/entries new file mode 100644 index 0000000..bf46dff --- /dev/null +++ b/target/linux/ramips/base-files/lib/preinit/.svn/entries @@ -0,0 +1,130 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/ramips/base-files/lib/preinit +svn://svn.openwrt.org/openwrt + + + +2013-03-03T12:47:02.440277Z +35850 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +03_preinit_do_ramips.sh +file + + + + +2013-03-17T12:12:46.000000Z +be863146c3e1fa1d1f0d61b92be310f1 +2013-03-03T12:47:02.440277Z +35850 +juhosg + + + + + + + + + + + + + + + + + + + + + +105 + +06_set_iface_mac +file + + + + +2013-03-17T12:12:46.000000Z +c08558292850cc633c7bd532eaaaee2f +2013-02-16T11:50:25.188717Z +35615 +juhosg + + + + + + + + + + + + + + + + + + + + + +1522 + +05_ramips_load-input_drivers +file + + + + +2013-03-17T12:12:46.000000Z +155cc5c94b53b6d821d22e11e65243d2 +2012-02-11T20:37:34.973611Z +30463 +juhosg + + + + + + + + + + + + + + + + + + + + + +229 + diff --git a/target/linux/ramips/base-files/lib/preinit/.svn/text-base/03_preinit_do_ramips.sh.svn-base b/target/linux/ramips/base-files/lib/preinit/.svn/text-base/03_preinit_do_ramips.sh.svn-base new file mode 100644 index 0000000..31ef5f8 --- /dev/null +++ b/target/linux/ramips/base-files/lib/preinit/.svn/text-base/03_preinit_do_ramips.sh.svn-base @@ -0,0 +1,9 @@ +#!/bin/sh + +do_ramips() { + . /lib/ramips.sh + + ramips_board_detect +} + +boot_hook_add preinit_main do_ramips diff --git a/target/linux/ramips/base-files/lib/preinit/.svn/text-base/05_ramips_load-input_drivers.svn-base b/target/linux/ramips/base-files/lib/preinit/.svn/text-base/05_ramips_load-input_drivers.svn-base new file mode 100644 index 0000000..fbd4c83 --- /dev/null +++ b/target/linux/ramips/base-files/lib/preinit/.svn/text-base/05_ramips_load-input_drivers.svn-base @@ -0,0 +1,12 @@ +# +# Copyright (C) 2011 OpenWrt.org +# + +preinit_ramips_load_input_drivers() { + insmod input-core + insmod input-polldev + insmod gpio_keys_polled + insmod button-hotplug +} + +boot_hook_add preinit_main preinit_ramips_load_input_drivers diff --git a/target/linux/ramips/base-files/lib/preinit/.svn/text-base/06_set_iface_mac.svn-base b/target/linux/ramips/base-files/lib/preinit/.svn/text-base/06_set_iface_mac.svn-base new file mode 100644 index 0000000..fcfb86b --- /dev/null +++ b/target/linux/ramips/base-files/lib/preinit/.svn/text-base/06_set_iface_mac.svn-base @@ -0,0 +1,79 @@ +# +# Copyright (C) 2011 OpenWrt.org +# + +preinit_set_mac_address() { + local mac + + . /lib/functions.sh + . /lib/ramips.sh + + case $(ramips_board_name) in + 3g-6200n |\ + 3g300m | \ + mzk-w300nh2 |\ + wl-330n |\ + wl-330n3g) + mac=$(mtd_get_mac_binary factory 4) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + bc2 |\ + broadway |\ + dir-620-a1 |\ + esr-9753 |\ + freestation5 |\ + nw718 |\ + psr-680w |\ + rt-n56u |\ + sl-r7205) + mac=$(mtd_get_mac_binary factory 4) + mac=$(macaddr_setbit_la "$mac") + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + dir-300-b1 |\ + dir-300-b2 |\ + dir-600-b1) + mac=$(mtd_get_mac_binary devdata 16388) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + dir-645) + mac=$(mtd_get_mac_ascii nvram lanmac) + mac=$(macaddr_setbit_la "$mac") + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + dap-1350) + mac=$(mtd_get_mac_binary devdata 46) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + all0239-3g |\ + all0256n |\ + all5002 |\ + carambola |\ + dir-615-h1 |\ + fonera20n |\ + rt-n13u |\ + hw550-3g |\ + nbg-419n |\ + omni-emb |\ + omni-emb-hpm |\ + tew-691gr |\ + tew-692gr |\ + w306r-v20 |\ + w502u |\ + wr6202 |\ + xdxrn502j) + mac=$(mtd_get_mac_binary factory 40) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + wl341v3) + mac=$(mtd_get_mac_binary board-nvram 65440) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + rt-n10-plus) + mac=$(mtd_get_mac_binary devconf 4) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; + esac +} + +boot_hook_add preinit_main preinit_set_mac_address |