Fix bash syntax for output redirection and document certificate sub directory

pull/1/head
Enrico Tröger 2015-04-25 12:10:02 +02:00
parent 3a626bff6c
commit 8b8071d393
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