#!/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 !!!




Link
Script link bedengan.jw.lt
Script Clik logo bedengan.jw.lt