The lindi scripts we had now are part of omhacks
authorEnrico Zini <enrico@enricozini.org>
Thu, 3 Dec 2009 12:36:37 +0000 (13:36 +0100)
committerEnrico Zini <enrico@enricozini.org>
Thu, 3 Dec 2009 12:36:37 +0000 (13:36 +0100)
debian/zavai.install
debian/zavai_forever
lindi/README [deleted file]
lindi/om-device [deleted file]
lindi/om-make-sysfsrc [deleted file]

index 773476535889b9c455dfaed09a80eec6d8c1d6fa..2465e9f8cc849a863553c369bc5d03a61fa90c9b 100644 (file)
@@ -4,5 +4,3 @@ hooks/display usr/share/doc/zavai/examples
 hooks/keyboard usr/share/doc/zavai/examples
 hooks/keyboard.fil usr/share/doc/zavai/examples
 debian/zavai_forever usr/bin
-lindi/om-device usr/bin
-lindi/om-make-sysfsrc usr/bin
index b0015ba26caa6f870098406fa6eb66a7755b5656..4d93a11950ea7446cf3eae54c9af4d3ebc727244 100755 (executable)
@@ -1,8 +1,5 @@
 #!/bin/sh
 
-# Ensure that we have ~/.sysfsrc
-om-make-sysfsrc
-
 while true
 do
        /usr/bin/zavai "$@"
diff --git a/lindi/README b/lindi/README
deleted file mode 100644 (file)
index d06177c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-These scripts are from Timo Juhani Lindfors.
-
-They are here until they will be split in a separate openmoko-scripts package.
diff --git a/lindi/om-device b/lindi/om-device
deleted file mode 100755 (executable)
index 25a6fd9..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/sh
-. $HOME/.sysfsrc
-
-mode="$1"
-if [ "$mode" = "" ]; then
-    mode="list"
-fi
-case "$mode" in
-    stop)
-       dev="$2"
-       case "$dev" in
-           bt)
-               sudo sh -c "echo 1 > $sys_pm_bt/reset"
-               sudo sh -c "echo 0 > $sys_pm_bt_power"
-               ;;
-           gsm)
-               sudo sh -c "echo 0 > $sys_pm_gsm_power"
-               ;;
-           gps)
-               sudo sh -c "echo 0 > $sys_pm_gps_power"
-               if [ `cat $sys_pm_gps_power` = 1 ]; then
-                   echo "error, retrying"
-                   sudo sh -c "echo 1 > $sys_pm_gps_power"
-                   sudo sh -c "echo 0 > $sys_pm_gps_power"
-               fi
-               ;;
-           wifi)
-               sudo sh -c "echo s3c2440-sdi > $sys_wlan_driver/unbind"
-               ;;
-           *)
-               echo "unknown device $dev"
-               exit 1
-               ;;
-           esac
-       ;;
-    start)
-       dev="$2"
-       case "$dev" in
-           bt)
-               sudo sh -c "echo 1 > $sys_pm_bt_power"
-               sudo sh -c "echo 0 > $sys_pm_bt/reset"
-               ;;
-           gsm)
-               sudo sh -c "echo 0 > $sys_pm_gsm/power_on"
-               sudo sh -c "echo 1 > $sys_pm_gsm/power_on"
-               sudo sh -c "echo 1 > $sys_pm_gsm/reset"
-               ;;
-           gps)
-               sudo sh -c "echo 1 > $sys_pm_gps_power"
-               ;;
-           wifi)
-               sudo sh -c "echo s3c2440-sdi > $sys_wlan_driver/unbind" 2> /dev/null
-               sudo sh -c "echo s3c2440-sdi > $sys_wlan_driver/bind"
-               ;;
-           *)
-               echo "unknown device $dev"
-               exit 1
-               ;;
-           esac
-       ;;
-
-    list)
-       echo "bt `cat $sys_pm_bt_power`"
-       echo "gsm `cat $sys_pm_gsm_power`"
-       echo "gps `cat $sys_pm_gps_power`"
-       #echo "wifi ?"
-       wifi 2> /dev/null
-       ;;
-    measure-consumption)
-       echo turning $2 on
-       $0 start $2
-       for i in `seq 1 30`; do
-           echo $i `cat $sys_battery/current_now`
-           sleep 1
-       done
-       start=`cat $sys_battery/current_now`
-       echo turning $2 off
-       $0 stop $2
-       for i in `seq 1 40`; do
-           echo $i `cat $sys_battery/current_now`
-           sleep 1
-       done
-       end=`cat $sys_battery/current_now`
-       diff=`expr $start - $end`
-       echo difference $diff
-       ;;
-    *)
-       echo "unknown operation $mode"
-       exit 1
-       ;;
-esac
diff --git a/lindi/om-make-sysfsrc b/lindi/om-make-sysfsrc
deleted file mode 100755 (executable)
index e130052..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-sysfsrc="$HOME/.sysfsrc-$(uname -r)"
-if [ ! -e "$sysfsrc" ]; then
-  (
-    echo export sys_pm_gps_power=\"$(find /sys -wholename "*pm-gps*/power_on" -o -wholename "*pm-gps*/pwron")\"
-    echo export sys_pm_bt_power=\"$(find /sys -wholename "*pm-bt*/power_on" -o -wholename "*pm-bt*/pwron")\"
-    echo export sys_pm_gsm=\"$(find /sys -name neo1973-pm-gsm.0 -type d)\"
-    echo export sys_pm_gsm_power=\"$(find /sys -wholename "*pm-gsm*/power_on" -o -wholename "*pm-gsm*/pwron")\"
-    echo export sys_pm_wlan=\"$(find /sys -wholename "*gta02-pm-wlan/gta02-pm-wlan.0")\"
-    echo export sys_battery=\"$(find /sys -wholename "*/power_supply/battery" -o -wholename "*/power_supply/bat" -type d)\"
-    echo export sys_usb_mode=\"$(find /sys -name usb_mode)\"
-    echo export sys_hostmode=\"$(find /sys -name hostmode)\"
-    echo export sys_brightness=\"$(find /sys -wholename "*backlight*/brightness")\"
-    echo export sys_resume_reason=\"$(find /sys -wholename "*neo1973-resume.0/resume_reason")\"
-    echo export sys_resume_reason2=\"$(find /sys -wholename "*/0-0073/resume_reason")\"
-    echo export sys_vibrator=\"$(find /sys -name neo1973:vibrator)\"
-    echo export sys_auxled=\"$(find /sys -name "gta02-aux:red")\"
-    echo export sys_force_usb_limit_dangerous=\"$(find /sys -name force_usb_limit_dangerous -o -name usb_curlim)\"
-    echo export sys_wlan_driver=\"/sys/bus/platform/drivers/s3c2440-sdi\"
-  ) > "$sysfsrc"
-fi
-ln -fs $sysfsrc ~/.sysfsrc