|
From: Serge L. <sma...@us...> - 2009-01-07 06:33:12
|
Update of /cvsroot/devil-linux/build/scripts In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv5857 Added Files: iscsitarget open-iscsi Log Message: - added iscsi --- NEW FILE: open-iscsi --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/open-iscsi,v $ # $Revision: 1.1 $ # $Date: 2009/01/07 06:32:58 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: open-iscsi # Required-Start: linux # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: iSCSI implementation ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_ISCSI_INIT" = "y" ]; then if [ ! -f .patch.done ]; then bzcat $SRCDIR/open-iscsi-destdir.patch.bz2 | patch -p0 || exit 1 touch .patch.done fi make KSRC=$KERNELDIR all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_ISCSI_INIT" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir $TMPDIR || exit 1 make install KSRC=$KERNELDIR DESTDIR=$TMPDIR || exit 1 copy_files $TMPDIR/etc $ETCDIR/ || exit 1 rm -rf $TMPDIR/etc || exit 1 rm -f $TMPDIR/lib/modules/*/modules.* || exit 1 cp -dpvR $TMPDIR/* $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: iscsitarget --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/iscsitarget,v $ # $Revision: 1.1 $ # $Date: 2009/01/07 06:32:58 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: iscsitarget # Required-Start: linux # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: iSCSI target implementation ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_ISCSI_TARGET" = "y" ]; then make KSRC=$KERNELDIR $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_ISCSI_TARGET" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir $TMPDIR || exit 1 make KSRC=$KERNELDIR install DISTDIR=$TMPDIR || exit 1 copy_files $TMPDIR/etc $ETCDIR/ || exit 1 rm -rf $TMPDIR/etc || exit 1 cp -dpvR $TMPDIR/* $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |