You can add this as part of your init scripts

ex: add it in init.rc or some other init scripts. it should work.

thanks
Venu

On Mon, Apr 9, 2012 at 6:20 PM, Vikas KM <[email protected]> wrote:

> Hi All,
>
> I want to execute a shell script in android
>
> *************** SHELL SCRIPT ********************
>
>  if [ ! -d "/sys/devices/platform/ehci-omap.0/usb1/1-2/1-2.4" ]; then
>     if [ -d "/sys/devices/platform/ehci-omap.0/usb1/1-2" ]; then
>         NUMINTERFACE=`cat
> /sys/devices/platform/ehci-omap.0/usb1/1-2/bNumInterfaces`
>     fi
>  fi
>
> ********************************************************
>
> That is based on the path if it exists, I want to run another script...
>
> But i m unable to run the below script any idea what might be wrong?
>
> I have root shell...
>
>
> *# sh ($PATH)/script_name.sh*   Command i m using.
>
>
> --------------
> Regards
>
> Vikas KM
> http://arowboat.org
>
>  --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>



-- 
Thanks
Venumadhav

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to