Script compilekernel khusus buat mesin Proxy

#!/bin/sh
######################################################
#    Proses kompilasi kernel OpenBSD sebagai proxy   #
#                                                    #
#        Tri Budi - tribudi@hijaunet.com             #
#  $ compilekernel.sh, v.1.3 2010/05/19 23:53 $      #
######################################################

KERNPATH=/sys/arch/i386/conf
SERVER=ftp.openbsd.or.id
DIR='pub/OpenBSD/4.6/packages/i386'
HOSTNAME=`/bin/hostname -s`

# FTP & install dmassage
#-----------------------
get() {
ftplist="" # Set to null in case for second invocation
for item in $@ ; do
full_name=ftp://$SERVER/$DIR/$item
ftplist="$ftplist $full_name"
done

echo "About to get the following:"
echo "$ftplist"

ftp $ftplist
}
get dmassage*
pkg_add dmassage*

# End of process
#---------------

for i in {src,sys}.tar.gz; do
echo "Extract source kernel";
cd /home/
tar -zxf $i -C /usr/src
done

if ls $KERNPATH |grep 'GENERIC'; then
echo "Customize Kernel";
cd $KERNPATH;
dmassage -s GENERIC > $HOSTNAME
fi

echo "option BUFCACHEPERCENT=15" >> $KERNPATH/$HOSTNAME
echo "option MSGMNB=16384" >> $KERNPATH/$HOSTNAME
echo "option MSGMNI=60" >> $KERNPATH/$HOSTNAME
echo "option MSGSEG=4096" >> $KERNPATH/$HOSTNAME
echo "option MSGSSZ=64" >> $KERNPATH/$HOSTNAME
echo "option MSGTQL=1024" >> $KERNPATH/$HOSTNAME
echo "option MAXFILES=8192" >> $KERNPATH/$HOSTNAME

echo "Configuring new kernel" ;
cd $KERNPATH
config $HOSTNAME
cd ../compile/$HOSTNAME
make depend && make && make install
echo "Kernel install succesfully, system would be reboot";
reboot

# EOF

Download Here

Yg blom bener mohon direvisi !!!

Advertisement

3 Responses to Script compilekernel khusus buat mesin Proxy

  1. Endrik says:

    Script link bedengan.jw.lt

  2. bedengan says:

    Script Clik logo bedengan.jw.lt

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.