diff options
author | Andy Green <andy.green@linaro.org> | 2012-11-15 01:24:44 +0000 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-11-16 12:15:03 +0800 |
commit | 1a1622203763d68d11d20d6c2462f7c189d1b5f3 (patch) | |
tree | c7990dca2b036311f20183693a56f37af2c17197 | |
parent | d5606f9ec4b2ea5037c3c1068605a45c86332984 (diff) |
remove confusing toplevel hdcapture script
Signed-off-by: Andy Green <andy.green@linaro.org>
-rwxr-xr-x | hdcapture | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/hdcapture b/hdcapture deleted file mode 100755 index 3217853..0000000 --- a/hdcapture +++ /dev/null @@ -1,132 +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" - -mmux_module="media_mux" -mmux_device_num="0 1" -mmux_device="/dev/media_mux" - - -# -# 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 - -# -# Load new driver module -# -if [ -e $LIBDIR/$module.ko ]; then - echo -n "Loading new MB86H55 device driver... " - /sbin/insmod $LIBDIR/$module.ko -elif [ -e ./$module.ko ]; then - echo -n "Loading new MB86H55 device driver... " - /sbin/insmod ./$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 - - -#........................................................... - -# -# Unload old driver module -# -grep $mmux_module /proc/modules > /dev/null -if [ $? = 0 ];then - echo -n "Unloading old media_mux device driver... " - /sbin/rmmod $mmux_module - echo "done." -fi - -# -# Remove old device special files -# -for i in $mmux_device_num; do - rm -f $mmux_device$i - #echo $mmux_device$i -done - -# -# Load new driver module -# -echo -n "Loading new media_mux device driver... " -if [ -e $LIBDIR/$mmux_module.ko ];then - /sbin/insmod $LIBDIR/$mmux_module.ko - echo "done." -elif [ -e ./$mmux_module.ko ];then - /sbin/insmod ./$mmux_module.ko - echo "done." -else - echo "ERROR: Cat'n find $mmux_module.ko !" - exit -fi - -# -# Get major number from /proc/devices -# -major=$(awk "\$2==\"$mmux_module\" {print \$1}" /proc/devices) - -# -# Create device special files -# -for i in $mmux_device_num; do - if [ ! -e $mmux_device$i ];then - mknod $mmux_device$i c $major $i - chmod 666 $mmux_device$i - fi -done - |