dockerfiles/ykpersonalize/entrypoint.sh
Jessica Frazelle 94b824f520
entrypoint
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-11-02 18:24:15 -08:00

17 lines
259 B
Bash
Executable File

#!/bin/bash
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
"$@"