File: nmofif

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 (14 lines) | stat: -rwxr-xr-x 321 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# nmofif	Determines the netmask of the interface given on the
#		commandline
#
# v1.0	19 July 1998
# v1.1  12 June 1999
# v1.2	8 Jan 2000
#####

export LC_ALL="C"

/sbin/ifconfig $1 | grep Mask: | sed 's/.*Mask:\([0-9.]*\)$/\1/g' 
#/sbin/route -n | grep -v "^0.0.0.0" | grep "$1$" | grep -v "H" | cut -c33-47