Monday, February 29, 2016

Possible problems Running SH in updater script

Sorry if this is the wrong sub-forum, but here is my problem, It doesn't seem to run the runme.sh file, since no lines are added to the files, but the file is copied to the right place. Here is my updater_script

Code:

ui_print("------------------------------------");
ui_print(" LgL90W7 AudioMod for CM13 (@Quarx)");
ui_print(" Mod By: JvaOneShotzXprX ");
ui_print(" Version -");
ui_print("
________  _______  _________  ________          _______   
|\  __  \|\  ___ \|\___  ___\\  __  \        /  ___  \   
\ \  \|\ /\ \  __/\|___ \  \_\ \  \|\  \      /__/|_/  /| 
 \ \  __  \ \  \_|/__  \ \  \ \ \  __  \      |__|//  / / 
  \ \  \|\  \ \  \_|\ \  \ \  \ \ \  \ \  \        /  /_/__ 
  \ \_______\ \_______\  \ \__\ \ \__\ \__\      |\________\
    \|_______|\|_______|  \|__|  \|__|\|__|        \|_______|
");
ui_print("------------------------------------");
ui_print("ChangeLog");
ui_print("Version 2.0 Beta");
ui_print("Confirmed Support for AOSP ROMs ");
ui_print("Added Support for KK ROMs")
ui_print("Added Support for V4A");
ui_print("Added Support for Dolby MODs");
ui_print("Added File Editing");
ui_print("Version 1.0 Beta");
ui_print("Initial Release");
run_program("/sbin/sleep", "5");
ui_print(" Mounting /System ");
run_program("/sbin/mount", "/system");
ui_print(" System Mounted, Extracting Mod ");
run_program("/sbin/sleep", "1");
package_extract_dir("system", "/system");
ui_print(" Editing Files ");
assert (package_extract_file ("runme.sh", "/cache/runme.sh"));
set_perm(0, 0, 0755, "/cache/runme.sh");
run_program ("/cache/runme.sh");
run_program("/sbin/sleep", "2");
ui_print(" Cleaning and Finishing Up ");
run_program("/sbin/sleep", "3");
ui_print(" Installation all done! ");
run_program("/sbin/sleep", "1");
ui_print(" If this helped you, Donate or ");
run_program("/sbin/sleep", "1");
ui_print(" Hit that thanks button on XDA! ");
run_program("/sbin/sleep", "1");
ui_print ("
 ___ _  _ __ ____ _  _  /
|___ |\ |  | |  |  \_/  /
|___ | \| _| |__|  |  .   

");
run_program("/sbin/sleep", "1");                         
ui_print("------------------------------------");
run_program("/sbin/sleep", "1");

And here is my runme.sh script, which by the IS being moved to /cache

Code:

#! /system/bin/sh
echo # ==================================================
>> /system/etc/audio_effects.conf
echo # LG L90 CM13 SoundMod by JvaOneShotzXprX
>> /system/etc/audio_effects.conf
echo # ==================================================
>> /system/etc/audio_effects.conf
echo ThisIsATest >> /system/etc/audio_effects.conf
echo # ==================================================
>> /system/etc/audio_effects.conf

but it is not doing anything. What am I doing wrong now since I cant see what is wrong and it was working before. Thanks.


via xda-developers http://ift.tt/1nbiXPF

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

No comments:

Post a Comment