diff options
author | Jonas Smedegaard <dr@jones.dk> | 2001-09-18 08:51:02 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2001-09-18 08:51:02 +0000 |
commit | 529182b23e3849b7717e8f6f741d9dd7cbc57bcf (patch) | |
tree | 3ebb0cbbdc9bdebde18cde92a7db4c9c30fc6573 /ipmasq/rules/A01interfaces.rul | |
parent | 17759a25f6946416e18c8d1329aee7a1fa0750d2 (diff) |
Added ipmasq/rules/*
Diffstat (limited to 'ipmasq/rules/A01interfaces.rul')
-rw-r--r-- | ipmasq/rules/A01interfaces.rul | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ipmasq/rules/A01interfaces.rul b/ipmasq/rules/A01interfaces.rul new file mode 100644 index 0000000..56808c6 --- /dev/null +++ b/ipmasq/rules/A01interfaces.rul @@ -0,0 +1,19 @@ +# You should not edit this file. Instead, create a file with the same +# name as this one, but with a .rul extension instead of .def. The +# .rul file will override this one. +# +# However, any changes you make to this file will be preserved. +# +# Correction: +# Ignore irda interfaces as well. +# Jonas Smedegaard <dr@jones.dk> Sat, 17 Jun 2000 15:10:17 +0200 + +# find interface names +EXTERNAL=$(default-if | sort -u) +INTERNAL=$(enumerate-if | sort -u | grep -v lo | grep -v irda) +if [ -n "$EXTERNAL" ]; then + for i in $EXTERNAL; do + INTERNAL=$(echo $INTERNAL | sed -e s/$i//) + done +fi + |