The included file adhoc-switcher.sh is will do all of the work for you.
From the included README file:
Unzip the archive adhoc-switcher.zip into the same directory as your adb binary.
Execute ./adhoc-switcher.sh in your adb binary directory.
# md5sum adhoc-switcher.zip
When you run adhoc-switcher.sh, you will see the following output telling you what it is doing:
$ ./adhoc-switcher.sh (1) Remounting /system as read-write... (2) Making backup of original wpa_supplicant at: /system/bin/wpa_supplicant.original... (3) Making local backup of /system/bin/wpa_supplicant.original... 2070 KB/s (226036 bytes in 0.106s) (4) Pushing up new files to /system/bin/... wpa_supplicant.adhoc: 1662 KB/s (226028 bytes in 0.132s) wpa_supplicant.infrastructure: 1711 KB/s (226036 bytes in 0.128s) ap: 6 KB/s (271 bytes in 0.042s) adhoc: 6 KB/s (253 bytes in 0.040s) (5) Setting permissions on new files in /system/bin/... (6) Setting Wifi mode to Infrastructure (ap)... (7) Remounting /system as read-only... All done!
execute the following commands on your NC:
To switch to Access Point [Infrastructure] mode, execute the following
commands on your NC:
You should turn off wifi before executing these commands.
Hope you find this useful.
John - your friendly neighborhood e-thug.