File: default-if

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 (13 lines) | stat: -rwxr-xr-x 220 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# default-if	Determines the default interface
#
# v1.0	19 July 1998
# v1.1  10 Feb 1999
#####

/sbin/route -n | grep -q ^0
if [ $? = 1 ]; then exit 0; fi

/sbin/route -n | grep ^0 | cut -c 73- | sort | uniq