Hi,

If you're using it in init, perhaps you can check init.goldfish.rc and
system/etc/init.goldfish.sh? It's there in every build and is an
example of shell scripts.

Perhaps you are missing a shebang?

On 4月9日, 上午8時20分, 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 KMhttp://arowboat.org

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

Reply via email to