blob: ed166907ff01fac210fc93e2c02aecbdf20c86b4 [file] [log] [blame]
#!@BASH@
hasProcess() {
local processName=$1
if pgrep -x $processName >/dev/null
then
echo $processName
fi
}
hasNFD=$(hasProcess nfd)
hasNRD=$(hasProcess nrd)
if [[ -n $hasNFD$hasNRD ]]
then
echo 'NFD or NRD is already running...'
exit 1
fi
sudo nfd &
sleep 2
nrd &
sleep 2