OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | #!/bin/sh |
| 2 | |
| 3 | |
| 4 | cd /lib/modules/`uname -r` |
| 5 | |
| 6 | echo jz4740-mmc.0 > /sys/bus/platform/drivers/jz4740-mmc/unbind |
| 7 | insmod at86rf230.ko |
| 8 | insmod spi_atben.ko |
| 9 | |
| 10 | cd ${HOME} |
| 11 | |
| 12 | iz add wpan-phy0 |
| 13 | if [ "$1" == "2" ]; then |
| 14 | ip link set wpan0 address de:ad:be:af:ca:fe:ba:b2 |
| 15 | else |
| 16 | ip link set wpan0 address de:ad:be:af:ca:fe:ba:b1 |
| 17 | fi |
| 18 | ifconfig wpan0 up |
| 19 | |
| 20 | if [ "$1" == "2" ]; then |
| 21 | iz assoc wpan0 777 1 11 short |
| 22 | |
| 23 | izchat 777 8001 1 |
| 24 | #dirtpan 777 8001 1 'ifconfig tun0 10.8.0.2 dstaddr 10.8.0.1 up' & |
| 25 | else |
| 26 | rm -f /tmp/lease |
| 27 | izcoordinator -d 1 -l /tmp/lease -i wpan0 -p 0x777 -s 1 -c 11 & |
| 28 | |
| 29 | izchat 777 1 8001 |
| 30 | #dirtpan 777 1 8001 'ifconfig tun0 10.8.0.1 dstaddr 10.8.0.2 up' & |
| 31 | fi |
| 32 |
