summaryrefslogtreecommitdiff
path: root/ipmasq/rules/A01interfaces.rul
blob: 56808c6d0bc1dad91c42ee66bef5d050478fd227 (plain)
  1. # You should not edit this file. Instead, create a file with the same
  2. # name as this one, but with a .rul extension instead of .def. The
  3. # .rul file will override this one.
  4. #
  5. # However, any changes you make to this file will be preserved.
  6. #
  7. # Correction:
  8. # Ignore irda interfaces as well.
  9. # Jonas Smedegaard <dr@jones.dk> Sat, 17 Jun 2000 15:10:17 +0200
  10. # find interface names
  11. EXTERNAL=$(default-if | sort -u)
  12. INTERNAL=$(enumerate-if | sort -u | grep -v lo | grep -v irda)
  13. if [ -n "$EXTERNAL" ]; then
  14. for i in $EXTERNAL; do
  15. INTERNAL=$(echo $INTERNAL | sed -e s/$i//)
  16. done
  17. fi