Date:2011-11-08 16:37:55 (7 years 1 month ago)
Author:Xiangfu Liu
Commit:649037ab6e2c494e40bdd33cfb110cc78ab32dd2
Message:nanonote-fiels: wpan add command config another ben

Files: nanonote-files/script-files/usr/bin/wpan.nn (1 diff)

Change Details

nanonote-files/script-files/usr/bin/wpan.nn
1010cd ${HOME}
1111
1212iz add wpan-phy0
13ip link set wpan0 address de:ad:be:af:ca:fe:ba:be
13if [ "$1" == "2" ]; then
14  ip link set wpan0 address de:ad:be:af:ca:fe:ba:b2
15else
16  ip link set wpan0 address de:ad:be:af:ca:fe:ba:b1
17fi
1418ifconfig wpan0 up
1519
16rm -f /tmp/lease
17izcoordinator -d 1 -l /tmp/lease -i wpan0 -p 0x777 -s 1 -c 11
20if [ "$1" == "2" ]; then
21  iz assoc wpan0 777 1 11 short
1822
19izchat 777 1 8001
20
21#dirtpan 777 1 8001 'ifconfig tun0 10.8.0.1 dstaddr 10.8.0.2 up'
23  izchat 777 8001 1
24  #dirtpan 777 8001 1 'ifconfig tun0 10.8.0.2 dstaddr 10.8.0.1 up' &
25else
26  rm -f /tmp/lease
27  izcoordinator -d 1 -l /tmp/lease -i wpan0 -p 0x777 -s 1 -c 11 &
2228
29  izchat 777 1 8001
30  #dirtpan 777 1 8001 'ifconfig tun0 10.8.0.1 dstaddr 10.8.0.2 up' &
31fi

Archive Download the corresponding diff file



interactive