]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/blob - ti/runtime/netapi/tools/net_test_router_setup.sh
cad1b4093113ec1857e4f264281461f6082a5d53
[keystone-rtos/netapi.git] / ti / runtime / netapi / tools / net_test_router_setup.sh
1 #!/bin/sh
3 export KERNEL_VER=$(uname -r)
4 #install kernel module
5 echo $KERNEL_VER
6 insmod /lib/modules/$KERNEL_VER/extra/hplibmod.ko
7 #
8 ifconfig eth1 up
9 # any ip address ok here
10 ifconfig eth1 10.0.2.100
11 # disable vlan aware mode in switch
12 devmem2 0x2090804 w 0x4
13 #
14 # run net_test_router applicaton, default location of config file is in /etc/netapi,
15 # default config file name is net_test_config.txt
16 /usr/bin/net_test_router /etc/netapi/net_test_config.txt