diff options
author | Andy Green <andy.green@linaro.org> | 2012-11-15 01:53:40 +0000 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-11-16 12:15:04 +0800 |
commit | 551c2e032fff941c279c66f0c7dffe6c6a60d413 (patch) | |
tree | 5e86023b591c14d7af2d8c3499f4ace3d947a6fe /fmb_driver | |
parent | faba564ab1716b87ae43e4e5c093856d9198a2c5 (diff) |
remove unneccesary driver install script
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'fmb_driver')
-rwxr-xr-x | fmb_driver/install.sh | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/fmb_driver/install.sh b/fmb_driver/install.sh deleted file mode 100755 index ba58020..0000000 --- a/fmb_driver/install.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/sh -#----------------------------------------------------------- -# install.sh --- Instal script for the MB86H55 driver -#----------------------------------------------------------- - -KERN_RELEASE=`uname -r` -LIBDIR="/lib/modules/$KERN_RELEASE/$MDIR" -FIRM_PATH="/lib/firmware/mb86h55.bin" - -module="h55fmb" -device_num="0 1 2 3 4 5 6 7" -device="/dev/h55fmb" -#device0="/dev/h55fmb0" -#device1="/dev/h55fmb1" - -# -# Check root account -# -uid=`id | sed 's/uid=//' | sed 's/(.*//'` -if [ $uid != 0 ]; then - echo "ERROR: You are not root.!!" - exit -fi - -# -# Edit /etc/rc.d/rc.local -# -grep h55fmb /etc/rc.d/rc.local > /dev/null -if [ $? != 0 ];then - echo "/etc/rc.d/rc6.d/S99$module" >> /etc/rc.d/rc.local -fi - -# -# Copy restart script -# -\cp S99$module /etc/rc.d/rc6.d/ -chmod 744 /etc/rc.d/rc6.d/S99$module - -# -# Unload old driver module -# -grep $module /proc/modules > /dev/null -if [ $? = 0 ];then - echo -n "Unloading old device driver... " - /sbin/rmmod $module - echo "done." -fi - -# -# Remove old device special files -# -for i in $device_num; do - rm -f $device$i - #echo $device$i -done -#rm -f $device0 -#rm -f $device1 - -# -# Install new driver module -# -echo -n "Making device driver... " -make clean >/dev/null -make >& /dev/null -make install >/dev/null -echo "done." - -# -# Load new driver module -# -echo -n "Loading new device driver... " -/sbin/insmod $LIBDIR/$module.ko -# /sbin/insmod $LIBDIR/$module.ko msg_lvl=1023 -# /sbin/insmod $LIBDIR/$module.ko msg_lvl=511 -echo "done." - -# -# Get major number from /proc/devices -# -major=$(awk "\$2==\"$module\" {print \$1}" /proc/devices) - -# -# Create device special files -# -for i in $device_num; do - if [ ! -e $device$i ];then - mknod $device$i c $major $i - chmod 666 $device$i - fi -done - |