• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root trying to modify a scrjpt

rhino889a

Android Expert
Hey guys
Found a script called swapconf used for configuring swap fikes and partition
its written to be flashed for a different device.
I am trying to manually install it.
It uses Bash
I have found Bash compiled for android and put it in system/bin
Then put swapconf in system/xbin
Put the swapconf.sh in my initd
Set permissions and reboot

Ran swapconf in terminal

app_75@android:/ $ su
root@android:/ # swapconf
No SD Card found. Aborting.
/system/bin/swapconf: line 37: return: can only `return' from a function or sourced script
whoami: unknown uid 0
root permission required!
Exiting...
1|root@android:/ #
I am unsure of how to finish this project
Wondering if anybody here who understands coding woukd mind taking a few,minutes to look it over.
I included Bash as well

https://www.dropbox.com/s/xddrvpkb99hglrk/update-OR-swapconf-v.0.2b - Copy.zip
 
Start off with the command "su" then go from there. It might need different mount locations than the ones it has default. Look into that
 
Back
Top Bottom