Index: bin/entdwife.sh |
diff --git a/bin/entdwife.sh b/bin/entdwife.sh |
index 8fd3aa9baede9196ffc9aacde4e72b51382bba06..b1297be54575ff6060c0e8fe99184c48c00aa4c3 100755 |
--- a/bin/entdwife.sh |
+++ b/bin/entdwife.sh |
@@ -269,9 +269,14 @@ cmd_start() { |
local extid="$(basename $(dirname "$extension"))" |
+ local cryptohome_flag="" |
+ if [ -r "/home/chronos/.cryptohome-init-pkcs11" ]; then |
+ cryptohome_flag="--cryptohome-init-pkcs11" |
+ fi |
exec "$FLAGS_entd" --utility="$FLAGS_utility" "$root_ca_option" \ |
--policy="$extension/policy.js" --manifest="$extension/manifest.json" \ |
- --username="$FLAGS_username" --callback-origin=chrome-extension://"$extid" |
+ --username="$FLAGS_username" --callback-origin=chrome-extension://"$extid" \ |
+ $cryptohome_flag |
} |
cmd_disapprove() { |