dockerfiles/ykpersonalize/entrypoint.sh
Jess Frazelle 329b27eeeb
add pipefails
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-27 16:58:43 -04:00

19 lines
282 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
init(){
local pcscd_running=$(ps -aux | grep [p]cscd)
if [ -z "$pcscd_running" ]; then
echo "starting pcscd in backgroud"
pcscd --debug --apdu
pcscd --hotplug
else
echo "pcscd is running in already: ${pcscd_running}"
fi
}
init
"$@"