File: ifup-local

package info (click to toggle)
bastille 1:1.3.0-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,576 kB
  • ctags: 397
  • sloc: perl: 8,407; sh: 1,879; ansic: 638; makefile: 203; csh: 17
file content (34 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
#
#	/sbin/ifup-local
#
# version 0.98beta10
#
# Script to be run when an interface is enabled
#
#		** NOTE **
# Bastille may replace this script; please use 
# /sbin/ifup-local.pre-bastille for your local 
# script needs
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# Run the local ifup-local script
if [ -x /sbin/ifup-local.pre-bastille ]; then
	echo "running the original ifup-local script"
	/sbin/ifup-local.pre-bastille "${1}"
fi

# Reset the Bastille firewall
if [ -x /sbin/bastille-firewall-reset ]; then
	echo "resetting the Bastille firewall ruleset"
	/sbin/bastille-firewall-reset "${1}"
fi