aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-11-15 01:49:12 +0000
committerAndy Green <andy.green@linaro.org>2012-11-16 12:15:04 +0800
commit06352c2b4aca8f7487047aa811b204bcaba5613e (patch)
tree3ce3071a99cc9fb705b40f02253343273d9481b8
parentb560b64c38002f9782501a1a3eaad99329e35cdc (diff)
remove old initscript
Signed-off-by: Andy Green <andy.green@linaro.org>
-rwxr-xr-xfmb_driver/S99h55fmb76
1 files changed, 0 insertions, 76 deletions
diff --git a/fmb_driver/S99h55fmb b/fmb_driver/S99h55fmb
deleted file mode 100755
index 3f587fd..0000000
--- a/fmb_driver/S99h55fmb
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-#-----------------------------------------------------------
-# S99h55fmb --- Restart 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
-
-#
-# Unload old driver module
-#
-grep $module /proc/modules > /dev/null
-if [ $? = 0 ];then
- echo -n "Unloading old MB86H55 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
-
-#
-# Load new driver module
-#
-if [ -e ./$module.ko ]; then
- echo -n "Loading new MB86H55 device driver(./$module.ko)... "
- /sbin/insmod ./$module.ko
-elif [ -e $LIBDIR/$module.ko ]; then
- echo -n "Loading new MB86H55 device driver($LIBDIR/$module.ko)... "
- /sbin/insmod $LIBDIR/$module.ko
-else
- echo "ERROR: Can't find $LIBDIR/$module.ko"
- exit
-fi
-# /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
-