mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
3a10b0889e
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
20 lines
286 B
Bash
Executable File
20 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
init(){
|
|
local pcscd_running
|
|
pcscd_running=$(pgrep pcscd)
|
|
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
|
|
|
|
"$@"
|