Remove All Ads from XDA

Getting a syntax error when trying to load a script

6 posts
Thanks Meter: 0
By XenoBreak, Junior Member on 27th May 2014, 01:38 AM
Post Reply Subscribe to Thread Email Thread
Hi. I just finished installing CyanogenMod 11 on my Galaxy Nexus. I also put the DirtyV-SR kernel on as well. Everything seems to be working fine. I then learned about a custom edit of the DirtyV kernel by Nephilim that seems to be popular. I have no idea how to change the settings manually though. Luckily in the DirtyV post there is a link to a script by the user "buscher" that supposedly does the changes for you. I followed the instructions and put the script in the System/etc/init.d folder, removed the .txt extension on the script, and changed it's permission settings (I think I changed the permissions correctly). I'm using an app called SManager to do this BTW. When I try to launch the script I get a syntax error. Here is a screen shot of said error...

i.imgur. com/ b5jAVe3. jpg
(Added spaces so I could post the link)

Link to DirtyV thread:
Link to buscher's post with the script:

Does anyone have any idea what im doing wrong? Or perhapsna different way to use Nephilims version of DirtyV?
Last edited by XenoBreak; 27th May 2014 at 04:06 AM.
27th May 2014, 07:16 PM |#2  
Junior Member
Thanks Meter: 1
I've never used any of the scripts you're talking about, but normally that syntax error means that there's a coding error in the script file that the interpreter doesn't know how to handle. I looked at the script in that thread and I can't see anything that would jump out as being problematic, so there's a chance something may have happened when you downloaded the script or copied it to the device.

I'd say you should try downloading the script again directly on your device, and make sure you're clicking the "Download" button on the Mediafire page with the script instead of doing a "save link as" or anything similar from the forum thread. You may even want to open it up in a text editor app and compare it to the version online to make sure that the file matches.
28th May 2014, 12:33 AM |#3  
OP Junior Member
Thanks Meter: 0
Alright so I redownloaded it and got it to run this time. My problem now is that it seems some of the required directories for the script don't exist on my phone for some reason.

Here's a new screenshot of the errors

http:// i.imgur. com /mjBjQ88. jpg (again had to add spaces)
28th May 2014, 06:47 PM |#4  
Junior Member
Thanks Meter: 1
It's probably safe to ignore those errors, they probably come from that script being older than the latest kernel version you're running it against. Basically, Linux kernels create a whole bunch of files and folders in /sys that control certain kernel settings. By writing a value to specific files, you can change those settings. Those two errors are the result of the script trying to change two settings files that don't exist anymore, possibly because they were removed in a newer version of the kernel. The rest of the script should run without problems and make the rest of the changes.
29th May 2014, 12:58 AM |#5  
ashclepdia's Avatar
Senior Member
Flag under philadelphia above Delaware, beer heaven
Thanks Meter: 1,543
Donate to Me
just wanted to say, there is no need for script manager to run that script.
remove the .txt
put it in /etc/init.d folder/dir
set all perms(i.e rwxrwxrwx)
then just reboot
it will automatically run and set everything in the script when the device boots.

if you want to set those things from nephilim thread, use the app called trickster mod(or Synapse, though trickster might be less overwhelming for someone new to setting these things)
any questions feel free to ask
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes