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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -