Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Question [Q] Help in making flashable .sh file

OP hnkotnis

14th February 2014, 03:42 PM   |  #1  
hnkotnis's Avatar
OP Senior Member
Flag Sangli, Maharashtra, India, Asia, Earth, Solar System, Milky Way Galaxy, Local Galaxy Group,Universe
Thanks Meter: 449
 
1,012 posts
Join Date:Joined: Jul 2013
More
Hi Everyone!

I want to make a .sh file which I am going to flash by CWM. I need your help in that.

1) In updater-script, when I extract it to /tmp, what permissions should I give to .sh file by set_perm?

2) I want it to execute "tar" command ("su" command that is root is not required) to operate on file from sdcard (/sdcard).

Can anyone tell me what should be the contents of .sh file.

I don't know much but I created this, and gave (0,0,0777) permissions but I am not getting required result. Please correct my script.

Code:
#!/sbin/sh
#Script to Odinize boot.img by hnkotnis@XDA 2014

cd sdcard
tar -cf boot-sgy.tar boot.img
Above command works when I type it from terminal emulator, but does not work when flashed.

Please help me, I don't know anything about .sh but I have good knowledge of terminal commands & edify commands.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes