Update of /cvsroot/leaf/src/bering-uclibc4/source/config
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2587
Modified Files:
buildtool.cfg buildtool.mk lrcfg
Added Files:
hwdetect
Log Message:
Added hadware auto-detection
Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/config/buildtool.cfg,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** buildtool.cfg 25 May 2010 15:39:34 -0000 1.3
--- buildtool.cfg 18 Oct 2010 15:57:18 -0000 1.4
***************
*** 5,9 ****
</File>
! <File help>
Server = cvs4-sourceforge
Revision = HEAD
--- 5,9 ----
</File>
! <File pauseme>
Server = cvs4-sourceforge
Revision = HEAD
***************
*** 11,15 ****
</File>
! <File pauseme>
Server = cvs4-sourceforge
Revision = HEAD
--- 11,15 ----
</File>
! <File hwdetect>
Server = cvs4-sourceforge
Revision = HEAD
***************
*** 80,84 ****
<config>
Version = 0.7
! Revision = 1
Help <<EOF
Core config and backup system package
--- 80,84 ----
<config>
Version = 0.7
! Revision = 2
Help <<EOF
Core config and backup system package
***************
*** 104,107 ****
--- 104,113 ----
</File>
<File>
+ Filename = usr/sbin/hwdetect
+ Source = usr/sbin/hwdetect
+ Type = binary
+ Permissions = 755
+ </File>
+ <File>
Filename = usr/bin/pauseme
Source = usr/bin/pauseme
Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/config/buildtool.mk,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** buildtool.mk 26 Apr 2010 09:02:44 -0000 1.1.1.1
--- buildtool.mk 18 Oct 2010 15:57:18 -0000 1.2
***************
*** 16,19 ****
--- 16,20 ----
mkdir -p $(CONFIG_TARGET_DIR)/etc
cp -a help $(CONFIG_TARGET_DIR)/usr/bin
+ cp -a hwdetect $(CONFIG_TARGET_DIR)/usr/sbin
cp -a pauseme $(CONFIG_TARGET_DIR)/usr/bin
cp -a with_storage $(CONFIG_TARGET_DIR)/usr/sbin
Index: lrcfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/config/lrcfg,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** lrcfg 26 Apr 2010 09:02:44 -0000 1.1.1.1
--- lrcfg 18 Oct 2010 15:57:18 -0000 1.2
***************
*** 24,27 ****
--- 24,28 ----
s) Save configuration
m) Backup modules
+ f) Find & load modules for hardware
c) Show configuration changes since last save
***************
*** 47,52 ****
s | S) with_storage $MNT lrcfg.backup configdb ;;
m | M) with_storage $MNT lrcfg.backup moddb ;;
! c | C) with_storage $MNT apkg -r | more ; pauseme ;;
! d | D) with_storage $MNT apkg -R | more ; pauseme ;;
h | H) lrcfg.conf ' Packages Help Menu' \
--- 48,54 ----
s | S) with_storage $MNT lrcfg.backup configdb ;;
m | M) with_storage $MNT lrcfg.backup moddb ;;
! c | C) with_storage -r $MNT apkg -r | more ; pauseme ;;
! d | D) with_storage -r $MNT apkg -R | more ; pauseme ;;
! f | F) with_storage -r $MNT hwdetect ; pauseme ;;
h | H) lrcfg.conf ' Packages Help Menu' \
--- NEW FILE: hwdetect ---
#!/bin/sh
MODPKG_NAME=modules.tgz
STORAGE_MEDIA=${1:-$STORAGE_MEDIA}
if [ -z "$STORAGE_MEDIA" ]; then
echo "STORAGE_MEDIA nor directory with modules.tgz not specified!"
echo "Usage: $0 [directory with $MODPKG_NAME]"
exit 1
fi
MODPKG=""
for i in $STORAGE_MEDIA; do
[ -r $i/$MODPKG_NAME ] && MODPKG=$i/$MODPKG_NAME
done
KVER=`uname -r`
MODDIR="/lib/modules/$KVER"
DELAY=1
if [ -z "$MODPKG" ]; then
echo "$MODPKG_NAME not found! Put it near moddb.lrp!"
exit 1
fi
trap "echo \" Terminated, doing clean-up.\"; rm -rf $MODDIR; \
ln -s /lib/modules $MODDIR; depmod; exit" 2 5 15
echo -n "Extracting modules... "
cd /lib/modules
rm -rf $MODDIR
mkdir $KVER; cd $KVER
tar -xzf $MODPKG
depmod
echo -e -n "Done.\nProbing modaliases... "
MODALIAS=`find /sys/devices -iname modalias -exec cat {} \;`
TMODALIAS=""
while [ `echo "$MODALIAS"|wc -l` -gt `echo "$TMODALIAS"|wc -l` ]; do
MODCOUNT=0
for i in $MODALIAS; do
if [ -z "`modprobe $i 2>&1 | grep \"not found\"`" ]; then
MODCOUNT=$(($MODCOUNT+1))
fi
done
sleep $DELAY
TMODALIAS="$MODALIAS"
MODALIAS=`find /sys/devices -iname modalias -exec cat {} \;`
done
echo -e -n "$MODCOUNT devices has modules.\nCopying modules to /lib/modules... "
MODLIST="`lsmod | sed 's/ .*//g;s/_/?/g'`"
for i in $MODLIST; do
MODPATH=`find -name $i.ko`
[ -z "$MODPATH" ] || cp -a $MODPATH /lib/modules
done
echo Done.
rm -rf $MODDIR; ln -s /lib/modules $MODDIR
depmod
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits