cjdelisle/cjdns — pull request #650 by prurigro (2014-09-01 11:05:59+00:00)
Title: tons of improvements, cjdctl has restart, install.sh has uninstall, help

I went through and tried to replace any more up to date method of doing things with more compatible, traditional methods, in case this might be a factor in some of the older phones not working. I also pulled a bunch of additional static statements and change them into more easily configured, dynamic values using variables, and attempted to refactor he code a bit for improved readability. Nothing so far should have altered the functional behaviour of the setup.

The changes that did affect behaviour include:
* Way more error-handling in `install.sh`, as well as better parsing (so fewer bizarre scenarios should produce errors)
* A **help** menu has been added to `install.sh`
* An **uninstall** feature has been added to `install.sh`, which removes the files the same files as were placed in _/system_ by the install
* The install and uninstall features in `install.sh` now both kill `cjdroute` before running, as android doesn't let you update or remove it when it's being used
* More feedback is given to explain what's happening behind the scenes, and in some cases, what the user should be doing next
* The `cjdctl` script now has a **restart** feature, in addition to its **enable** and **disable** features

There might be one or two other small things I'm not thinking of, but that should be all the big stuff. I've tested a bunch of scenarios and have had it running on my phone for a couple hours now (cjdroute getting auto-started/stopped by the daemon frequently as I lock/unlock my phone), and it's been working exactly like it should; that said, other testers are always welcome *ahem* :).

Cheers