Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6341/scripts
Modified Files:
Tag: rel-1-2-patches
eagle-usb
Log Message:
new eagle-usb has issues....
Index: eagle-usb
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/eagle-usb,v
retrieving revision 1.2.2.4
retrieving revision 1.2.2.5
diff -u -d -r1.2.2.4 -r1.2.2.5
--- eagle-usb 1 May 2005 21:22:08 -0000 1.2.2.4
+++ eagle-usb 3 May 2005 01:16:35 -0000 1.2.2.5
@@ -12,7 +12,7 @@
### BEGIN INIT INFO
# Provides: eagle-usb
-# Required-Start: $basebuildtools $libs linux
+# Required-Start: $basebuildtools $libs linux net-tools
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
@@ -30,26 +30,30 @@
case $1 in
build )
if [ "$CONFIG_EAGLE_USB" = "y" ]; then
- ./autogen.sh || exit 1
- ./configure --prefix=/usr --with-kernel-src=$KERNELDIR --with-lang=en || exit 1
- replace_str driver/Makefile-2.4 "depmod -a" "true"
+ ./configure --prefix=/usr --with-kernel-src=$KERNELDIR --with-lang=en --with-dsp-dir=/usr/share/eagle-usb/dsp || exit 1
make || exit 1
fi
;;
install )
if [ "$CONFIG_EAGLE_USB" = "y" ]; then
- rm -rf $WORKDIR/tmp || exit 1
- mkdir -p $WORKDIR/tmp || exit 1
- mkdir -p $WORKDIR/tmp/etc/eagle-usb/scripts || exit 1
- make install DESTDIR=$WORKDIR/tmp || exit 1
+ rm -rf $TMPDIR || exit 1
+ mkdir -p $TMPDIR || exit 1
+ mkdir -p $TMPDIR/etc/eagle-usb/scripts || exit 1
+ make install DESTDIR=$TMPDIR || exit 1
- copy_files $WORKDIR/tmp/usr $CDDIR/usr || exit 1
- copy_files $WORKDIR/tmp/lib $CDDIR || exit 1
- copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1
+ mkdir -p $CDDIR/usr/share/eagle-usb/lang || exit 1
+ mv -f $TMPDIR/etc/eagle-usb/lang/* $CDDIR/usr/share/eagle-usb/lang/ || exit 1
+ rm -rf $TMPDIR/etc/eagle-usb/lang || exit 1
+
+ copy_files $TMPDIR/usr/sbin $CDDIR/usr/ || exit 1
+ copy_files $TMPDIR/lib $CDDIR || exit 1
+ copy_files $TMPDIR/etc $ETCDIR/ || exit 1
cp $MYDIR/scripts/eagle-usb $ETCDIR/etc/init.d || exit 1
- rm -rf $WORKDIR/tmp || exit 1
+ ln -sf /usr/share/eagle-usb/dsp $ETCDIR/etc/eagle-usb || exit 1
+ ln -sf /usr/share/eagle-usb/lang $ETCDIR/etc/eagle-usb || exit 1
+ rm -rf $TMPDIR || exit 1
echo "# Initialize the Eagle USB modem?" >> $CONFIGFILE
echo "START_EAGLE_USB=no" >> $CONFIGFILE
|