3 # Copyright (C) 2011 OpenWrt.org
11 [ -z $
(which maccalc
) ] && return
15 part
=$
(find_mtd_part
"factory")
16 [ -z $part ] && return
18 lan_mac
=$
(dd bs
=1 skip
=4 count
=6 if=$part 2>/dev
/null | maccalc bin2mac
)
19 [ -z $lan_mac ] && return
21 wan_mac
=$
(maccalc add
$lan_mac 1)
24 set network.lan.macaddr='$lan_mac'
25 set network.wan.macaddr='$wan_mac'
32 set system.usb_led=led
33 set system.usb_led.name='USB'
34 set system.usb_led.sysfs='nw718:amber:usb'
35 set system.usb_led.trigger='usbdev'
36 set system.usb_led.dev='1-1'
37 set system.usb_led.interval='50'
44 board
=$
(ramips_board_name
)
46 if [ "${board}" == "nw718" ]; then
This page took 0.0435 seconds and 5 git commands to generate.