Update of /cvsroot/devil-linux/build/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20047
Added Files:
dst pohmelfs
Log Message:
- added 2 full-featured network system: the first is network block device and
the second one is parallel network fs (a-la pNFS)
--- NEW FILE: pohmelfs ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/pohmelfs,v $
# $Revision: 1.1 $
# $Date: 2009/01/11 01:35:17 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: pohmelfs
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description:
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
if [ "$CONFIG_POHMELFS" = "y" ]; then
# patch kernel
DST_DIR=`pwd`
pushd $KERNELDIR > /dev/null
patch -p1 < $DST_DIR/pohmelfs*.patch || exit 1
echo -e "CONFIG_POHMELFS=m\n# CONFIG_POHMELFS_DEBUG is not set\n" >> .config || exit 1
popd > /dev/null
# Build userspace
make KDIR=$KERNELDIR || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_POHMELFS" = "y" ]; then
cp -f {fserver,cfg} $CDDIR/usr/sbin/ || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
--- NEW FILE: dst ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/dst,v $
# $Revision: 1.1 $
# $Date: 2009/01/11 01:35:17 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: dst
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: DST - distributed storage (analog of DRBD, iSCSI and NBD)
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
if [ "$CONFIG_DST" = "y" ]; then
# patch kernel
DST_DIR=`pwd`
pushd $KERNELDIR > /dev/null
patch -p1 < $DST_DIR/dst*.patch || exit 1
echo -e "CONFIG_DST=m\n# CONFIG_DST_DEBUG is not set\n" >> .config || exit 1
popd > /dev/null
# Build userspace
make KDIR=$KERNELDIR || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_DST" = "y" ]; then
cp -f dst $CDDIR/usr/sbin/ || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|