Merge pull request #1 from eht16/fix_syntax

Fix bash syntax for output redirection and document certificate sub dire...
pull/1/head
mcnesium 2015-04-27 10:22:29 +02:00
commit 38be8437c1
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ How-to
Save the script somewhere on your system. Save the script somewhere on your system.
Once done, add a new directory in the directory where you stored the script and place the certificates in this directory which you want to add to the phone's database. For CAcert, this would be the class 3 root certificate in PEM format as found on the [CAcert website](https://www.cacert.org/index.php?id=3). Once done, add a new directory in the directory where you stored the script and place the certificates which you want to add to the phone's database in the sub directory 'certs'. For CAcert, this would be the class 3 root certificate in PEM format as found on the [CAcert website](https://www.cacert.org/index.php?id=3).
Then simply run the script. Then simply run the script.

View File

@ -5,7 +5,7 @@ ROOT_DIR_DB=/data/b2g/mozilla
CERT=cert9.db CERT=cert9.db
KEY=key4.db KEY=key4.db
PKCS11=pkcs11.txt PKCS11=pkcs11.txt
DB_DIR=`adb shell "ls -d ${ROOT_DIR_DB}/*.default 2>/dev/null" | sed "s/default.*$/default/g"` DB_DIR=`adb shell "ls -d ${ROOT_DIR_DB}/*.default 2>/dev/null" | sed "s/default.*$/default/g"`
if [ "${DB_DIR}" = "" ]; then if [ "${DB_DIR}" = "" ]; then
echo "Profile directory does not exists. Please start the b2g process at echo "Profile directory does not exists. Please start the b2g process at