File: peerofif

package info (click to toggle)
ipmasq 3.4.4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 300 kB
  • ctags: 3
  • sloc: sh: 281; makefile: 48
file content (11 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# peerofif	Determines the IP address of the peer of the point-to-point
#		interface given on the commandline
#
# v1.0	15 July 1999
#####

export LC_ALL="C"

/sbin/ifconfig $1 | grep 'P-t-P:' | sed 's/.*P-t-P:\([0-9.]*\).*/\1/g'