mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
dd0d53927e
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
19 lines
282 B
Bash
Executable File
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
|
|
|
|
"$@"
|