i m be able to bring the led plinking 2 sec long in all colour or customs clours when a (native) program that is installed with the NEO installer and uses some .lin scripts

it should also work with all of the NEO-programs.
(may it works with the java apps/games -not tested yet).


i testet out on here
http://www.www.motorolafans.com/inde...ewtopic&t=1607
with the Clocker and the led blinking but its a bad example.


its better to use telnet in the phone, but it also works just with the USB-mode.


1. copy the led program to
diska/.system/led

2. edit the ledshort.lin like this (may you like customized colours and speed)
the directory is

cd /diska/.system/led


#!/bin/bash
delay=.1s
cd /diska/.system/led
./led 1
sleep $delay
./led 2
sleep $delay
./led 3
sleep $delay
./led 4
sleep $delay
./led 5
sleep $delay
./led 6
sleep $delay
./led 7
sleep $delay
./led 1
sleep $delay
./led 2
sleep $delay
./led 3
sleep $delay
./led 4
sleep $delay
./led 5
sleep $delay
./led 6
sleep $delay
./led 7
sleep $delay
./led 0
-----------------------------------------------------------

with Clocker:

just copy the ledshort.lin to
diska\.system\java\DownloadApps\MIDlet00244\Files\NeoInstalled
and edit and add

./ledshort.lin &

the main.lin from clocker directory.

#!/bin/bash

# Make sure we run as root, restart othervise, keep arguments intact
if [ "$1" == "x47restart" ]; then
shift 1
else
if [ "$(id -u)" != "0" ]; then
exec /sbin/start-stop-daemon -S -c root:root -x "$0" -- x47restart "$@"
fi
fi


export QTDIR=/usr/lib/ezx
export EZX_RES_FONT_PATH=$QTDIR/lib/fonts
MYDIR="$(pwd -P)"



if [ -e /tmp/clocker_autostart -a -d /ezxlocal/download/QTDownLoad/Startup ]; then
rm -f /ezxlocal/download/QTDownLoad/Startup/clocker
echo "#!/bin/sh" > /ezxlocal/download/QTDownLoad/Startup/clocker
echo "cd \"$MYDIR\"" >> /ezxlocal/download/QTDownLoad/Startup/clocker
echo "./main.lin &" >> /ezxlocal/download/QTDownLoad/Startup/clocker
chmod +x /ezxlocal/download/QTDownLoad/Startup/clocker
rm -f /tmp/clocker_autostart
fi



if [ -e /tmp/clocker_noautostart -a -d /ezxlocal/download/QTDownLoad/Startup ]; then
rm -f /ezxlocal/download/QTDownLoad/Startup/clocker
rm -f /tmp/clocker_noautostart
fi



if [ ! -x ./clocker ]; then
chmod +x ./clocker
fi
if [ ! -x ./alertprocess ]; then
chmod +x ./alertprocess
fi


./ledshort.lin &

exec "./clocker"
test it out

------------------------------------------------------

in GBA(gameboy advance)

same than with Clocker, just copy the ledshort.lin in
diska\.system\java\DownloadApps\MIDlet00223\Files\NeoInstalled

and edit the main.lin from GBA and add

./ledshort.lin &


#!/bin/sh

./ledshort.lin &

#
umask 002
export QTDIR=/usr/lib/ezx

#
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH:/usr/language/vr/english/lib:/usr/language/vr/mandarin/lib:/usr/language/vr/common/lib
export EZX_PLUGINS_DIR=/hatcreek/plugins

# font path
export EZX_RES_FONT_PATH=$QTDIR/lib/fonts

# icon path
export EZX_RES_ICON_PATH=/usr/language/icon

# string path
export EZX_RES_STRING_PATH=/usr/language/string

#
###############################################################################
#
export EZX_NATIVE_APP_PATH=/usr/SYSqtapp

export AM_SYS_STATE_SHM_PATH=/usr/SYSqtapp/am
export EZX_LOCAL_PATH=/ezxlocal/
export TRIFLASH_MOUNT_PATH=/diskb/
export MMC_MOUNT_PATH=/mmc/mmca1/
export EZX_LOCAL_DOWNLOAD_PATH=/ezxlocal/download/

export EZX_E680_LOCAL_PATH=/diska/
export EZX_E680_SYS_DATA_PATH=${EZX_E680_LOCAL_PATH}.system/
export MYSTUFF_DATA_PATH=${EZX_E680_LOCAL_PATH}
export EZX_INSTALLED_QT_PATH=${EZX_E680_SYS_DATA_PATH}/QTDownLoad/


export EZX_APP_WRITE_PATH=${EZX_LOCAL_DOWNLOAD_PATH}appwrite/
#export MYSTUFF_DATA_PATH=${EZX_LOCAL_DOWNLOAD_PATH}mystuff/
#export EZX_INSTALLED_QT_PATH=${EZX_LOCAL_DOWNLOAD_PATH}/QTDownLoad/
export EZX_INSTALLED_THEME_PATH=${EZX_LOCAL_DOWNLOAD_PATH}theme/
export EZX_LANG=/usr/language/

# Remove the comment sign # from the two lines below
# to enable turbo mode. WARNING: that is dangerous and
# may damage your hardware!
#insmod k.o
if [ ! -x vba ]; then
chmod +x vba
fi

./vba "$1"
#rmmod k
test it...

------------------------------------------------------------------

also we can make led blinking with the startup.lin script thats used for start up the neo installer and its programs.

add these lines in to the startup.lin script.

cd /diska/.system/led
./ledshort.lin &


#! /bin/sh

cd /diska/.system/led
./ledshort.lin &

cd /ezxlocal/download/QTDownLoad/Rootexec
/sbin/start-stop-daemon -S -o -c root:root -x ./startup
test....

-----------------------------------------------------------