summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a3ba97)
raw | patch | inline | side by side (parent: 1a3ba97)
author | Tinku Mannan <tmannan@ti.com> | |
Tue, 12 Aug 2014 13:23:27 +0000 (09:23 -0400) | ||
committer | Tinku Mannan <tmannan@ti.com> | |
Tue, 12 Aug 2014 13:24:26 +0000 (09:24 -0400) |
diff --git a/ti/runtime/netapi/demo/demo_setup_files/dpicgi2.sh b/ti/runtime/netapi/demo/demo_setup_files/dpicgi2.sh
index 3eaa0bcbe5b8d36ff325a6be59e3634732adaca1..a749a35563c8f45b18929b117cb4e744c0574b32 100755 (executable)
echo
#dump proto seen stat
#awk -f ../stats1.awk ../stats2.txt
-/sbin/transport_dpi_demo stats | awk -f ../stats1.awk
\ No newline at end of file
+/usr/bin/transport_dpi_demo stats | awk -f ../stats1.awk
diff --git a/ti/runtime/netapi/demo/demo_setup_files/dpicgi3.sh b/ti/runtime/netapi/demo/demo_setup_files/dpicgi3.sh
index 45bf5d7de3559f6c093a5b92458c3f0ca2810a3b..2df86540b23836cf8da80a62b0cc215e9a756a9f 100755 (executable)
echo
#dump proto cycles stats
#awk -f ../stats2.awk ../stats1.txt
-/sbin/transport_dpi_demo stats | awk -f ../stats2.awk
\ No newline at end of file
+/usr/bin/transport_dpi_demo stats | awk -f ../stats2.awk
diff --git a/ti/runtime/netapi/demo/demo_setup_files/transport_dpi_demo_setup.sh b/ti/runtime/netapi/demo/demo_setup_files/transport_dpi_demo_setup.sh
index 3101d570ea18d60ea09ba522ac046d66e194e75e..0772a828421fb87fc3c73b0a5ffca627c9a85f28 100755 (executable)
#!/bin/sh
export KERNEL_VER=$(uname -r)
+
+# configure thttpd to run cgi scripts
+sed -e 's|8080|8080 -c cgi-bin/*|g' -i /etc/init.d/thttpd
+# reload the thttpd server
+cd /etc/init.d
+./thttpd restart
+
#copy over web files
cp /etc/transportnetlib/dpi_demo/index.html /srv/www/index.html
+chmod -x /srv/www/index.html
cp /etc/transportnetlib/dpi_demo/stats1.awk /srv/www/stats1.awk
cp /etc/transportnetlib/dpi_demo/stats2.awk /srv/www/stats2.awk
cp /etc/transportnetlib/dpi_demo/stats3.awk /srv/www/stats3.awk
brctl addif br0 eth1
#
dhclient br0
+#
+ifconfig br0
# run transport_dpi_demo application
-/usr/bin/transport_dpi_demo
+cd /usr/bin
+./transport_dpi_demo
index 79f5a453b32764feab3c1a58a8a51da3cf7a28b9..2a34e256e94e0f659a422af2ac67fd2cfea7fbce 100755 (executable)
install -c -m 755 $(ARMV7BINDIR)/netapi/demo/transport_dpi_demo $(INSTALL_BIN_BASE_DIR)/
install -d $(SYSCONFDIR)/transportnetlib/dpi_demo
install -c -m 755 demo/demo_setup_files/transport_dpi_demo_setup.sh $(SYSCONFDIR)/transportnetlib/dpi_demo
- install -c demo/demo_setup_files/index.html $(SYSCONFDIR)/transportnetlib/dpi_demo
+ install -c -m 644 demo/demo_setup_files/index.html $(SYSCONFDIR)/transportnetlib/dpi_demo
install -c -m 755 demo/demo_setup_files/dpicgi1.sh $(SYSCONFDIR)/transportnetlib/dpi_demo
install -c -m 755 demo/demo_setup_files/dpicgi2.sh $(SYSCONFDIR)/transportnetlib/dpi_demo
install -c -m 755 demo/demo_setup_files/dpicgi3.sh $(SYSCONFDIR)/transportnetlib/dpi_demo