mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-12-02 14:28:08 +01:00
17 lines
259 B
Bash
17 lines
259 B
Bash
|
#!/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
|
||
|
|
||
|
"$@"
|