#!/bin/sh

USB_D=/mnt/disc0_1/packetprotector/

if [ -d $USB_D ] ; then
        SNORT_INLINE=`grep "snort-inline=" /etc/packetprotector.conf | cut -d "=" -f 2`
        if [ "X$SNORT_INLINE" = "X1" ] ; then
        	$USB_D/etc/init.d/firewall-IPS
        else
        	$USB_D/etc/init.d/firewall
	fi
else
        /etc/init.d/S35firewall
fi
