summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSangjung Woo <sangjung.woo@samsung.com>2016-11-16 14:16:20 +0900
committerSangjung Woo <sangjung.woo@samsung.com>2016-11-16 20:46:14 +0900
commit863335a0dec22abbc9d2444e9031db15b6822707 (patch)
treeb2f9c0a4024601c58b113b2514233791a4ac3871 /scripts
parent791ae807fbebce2779eb62465ff2df5bb8c31b60 (diff)
downloadsystem-plugin-863335a0dec22abbc9d2444e9031db15b6822707.tar.gz
system-plugin-863335a0dec22abbc9d2444e9031db15b6822707.tar.bz2
system-plugin-863335a0dec22abbc9d2444e9031db15b6822707.zip
This patch assigns the fixed IP address to USB Ethernet device to communicate with the Cluster device. Change-Id: I5f9e37d7b729517577cc646c92fc38a1577414ff Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/usb_net_init.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/usb_net_init.sh b/scripts/usb_net_init.sh
new file mode 100644
index 0000000..ab245b1
--- /dev/null
+++ b/scripts/usb_net_init.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+interface=$1
+
+/sbin/ifconfig ${interface} down
+/sbin/ifconfig ${interface} 192.20.16.11
+/sbin/ifconfig ${interface} up
+