[Armadeus-commitlog] SF.net SVN: armadeus: [560] trunk/target/linux/modules/gpio/loadgpio.sh
Brought to you by:
sszy
|
From: <ar...@us...> - 2007-01-27 22:06:11
|
Revision: 560
http://armadeus.svn.sourceforge.net/armadeus/?rev=560&view=rev
Author: artemys
Date: 2007-01-27 14:06:11 -0800 (Sat, 27 Jan 2007)
Log Message:
-----------
[LINUX DRIVER] Make GPIO driver loading script independant of Linux kernel version
Modified Paths:
--------------
trunk/target/linux/modules/gpio/loadgpio.sh
Modified: trunk/target/linux/modules/gpio/loadgpio.sh
===================================================================
--- trunk/target/linux/modules/gpio/loadgpio.sh 2007-01-27 21:38:13 UTC (rev 559)
+++ trunk/target/linux/modules/gpio/loadgpio.sh 2007-01-27 22:06:11 UTC (rev 560)
@@ -7,7 +7,8 @@
if [ -d "$1" ]; then
GPIO_MODULES_DIR="$1"
else
- GPIO_MODULES_DIR="/lib/modules/2.6.12/kernel"
+ KERNEL_VERSION=`uname -r`
+ GPIO_MODULES_DIR="/lib/modules/$KERNEL_VERSION/extra/gpio/"
echo "Using $GPIO_MODULES_DIR as default modules dir as no param was passed"
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|