android - Linux Script run on Startup -


i'm looking build cyanogenmod roms android, i've followed tutorial setup build environment.

this tutorial followed: http://wiki.cyanogenmod.org/w/build_for_i9305#prepare_the_device-specific_code

the question have is, instead of executing: cd ~/android/system source build/envsetup.sh

every time want build rom, there way run on boot? tried create script me , run in startup applications couldn't work.

#!/bin/bash cd ~/android/system/ source build/envsetup.sh 

it throws error:

kane@androidvm ~ $ sudo sh ~/android/system/build/envsetup.sh /home/kane/android/system/build/envsetup.sh: 1: /home/kane/android/system/build/envsetup.sh: syntax error: "(" unexpected

what doing wrong?

you can try add code in ~/.bashrc. think need launch terminal work. executed when terminal open.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -