File: sys_ifconfig.sh

package info (click to toggle)
bayonne 2.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 11,180 kB
  • ctags: 3,662
  • sloc: cpp: 38,791; sh: 9,323; ansic: 1,391; makefile: 485; perl: 471; java: 405; cs: 402; php: 354; python: 293
file content (12 lines) | stat: -rw-r--r-- 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
ifc="$ARGS_IFACE"
addr="$ARGS_ADDRESS"
if test ! -z "$addr" ; then
	/sbin/ifconfig $ifc $addr 2>&1 >/dev/null ; fi
addr=`/sbin/ifconfig $ifc | grep "inet addr:"`
addr=`echo $addr | cut -d\  -f2 | cut -d: -f2`
echo "$PORT_TSESSION result $addr"