OpenBSD bash script update route IIX

#!/bin/sh

################################################# #
# Parsing table routing IIX #
# #
# Tri Budi – tribudi@hijaunet.com #
# $ readIIX.sh, v.1.1 2010/05/21 14:38 $ #
##################################################

NICE=/etc/nice.rsc

cidr=`find $NICE -exec grep ‘[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*’ {} \;| sed ‘s/^[add list=nice address="]*//’|perl -pe ‘s/.$//’`

for i in $cidr
do
echo “$cidr” >> /etc/iix
done

Download here

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.