source: trunk/third/ifplugd/conf/ifplugd.action @ 20388

Revision 20388, 974 bytes checked in by amb, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20387, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# $Id: ifplugd.action,v 1.1.1.1 2004-04-09 20:09:10 amb Exp $
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
20set -e
21
22if [ -z "$1" ] || [ -z "$2" ] ; then
23        echo "Wrong arguments" > /dev/stderr
24        exit 1
25fi
26
27[ "$2" = "up" ] && exec /sbin/ifup $1
28[ "$2" = "down" ] && exec /sbin/ifdown $1
29
30exit 1
Note: See TracBrowser for help on using the repository browser.