home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110725.etc.tar.gz / bradford.20110725.etc.tar / etc / ifplugd / ifplugd.action next >
Text File  |  2006-05-02  |  990b  |  31 lines

  1. #!/bin/sh
  2. # $Id: ifplugd.action 99 2004-02-08 20:17:59Z lennart $
  3.  
  4. # This file is part of ifplugd.
  5. #
  6. # ifplugd is free software; you can redistribute it and/or modify it under
  7. # the terms of the GNU General Public License as published by the Free
  8. # Software Foundation; either version 2 of the License, or (at your
  9. # option) any later version.
  10. #
  11. # ifplugd is distributed in the hope that it will be useful, but WITHOUT
  12. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  14. # for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with ifplugd; if not, write to the Free Software Foundation,
  18. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  19.  
  20. set -e
  21.  
  22. if [ -z "$1" ] || [ -z "$2" ] ; then
  23.     echo "Wrong arguments" > /dev/stderr
  24.     exit 1
  25. fi
  26.  
  27. [ "$2" = "up" ] && exec /sbin/ifup $1 -o ifplugd
  28. [ "$2" = "down" ] && exec /sbin/ifdown $1 -o ifplugd
  29.  
  30. exit 1
  31.