summaryrefslogtreecommitdiff
path: root/openpicc/at91flash_automatic
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-11 04:48:36 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-11 04:48:36 +0000
commit820b68313794bc658cd664cbfd7adddbcfcd2cf8 (patch)
tree217db487d508a4fdcc1ecdb9002f4e88347e3eb2 /openpicc/at91flash_automatic
parent948f16ee2071b267646f92861208811b3e8e9853 (diff)
Add fancy out-of-band successful/failed indications
git-svn-id: https://svn.openpcd.org:2342/trunk@321 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/at91flash_automatic')
-rwxr-xr-xopenpicc/at91flash_automatic19
1 files changed, 17 insertions, 2 deletions
diff --git a/openpicc/at91flash_automatic b/openpicc/at91flash_automatic
index 40c23a9..8f92989 100755
--- a/openpicc/at91flash_automatic
+++ b/openpicc/at91flash_automatic
@@ -33,11 +33,26 @@ flash $FLASH_FILE
ENDOFMYTEXT
}
+blink_thinklight() {
+ if [ ! -w /proc/acpi/ibm/light ]; then return; fi
+ OLDSTATUS=`grep status < /proc/acpi/ibm/light | awk '{print $2;}'`
+ if [ "${OLDSTATUS}" = "off" ]; then
+ echo "on" > /proc/acpi/ibm/light
+ sleep 1
+ echo "off" > /proc/acpi/ibm/light
+ else
+ echo "off" > /proc/acpi/ibm/light
+ sleep 1
+ echo "on" > /proc/acpi/ibm/light
+ fi
+}
+
flashing_failed() {
- :
+ aplay /usr/kde/3.5/share/sounds/KDE_Error.wav > /dev/null 2>&1
}
flashing_successful() {
- :
+ blink_thinklight &
+ aplay /usr/kde/3.5/share/sounds/KDE_Notify.wav > /dev/null 2>&1
}
do_detect() {
personal git repositories of Harald Welte. Your mileage may vary