blob: ed166907ff01fac210fc93e2c02aecbdf20c86b4 [file] [log] [blame]
Junxiao Shid71d84c2014-04-18 17:22:50 -07001#!@BASH@
2
3hasProcess() {
4 local processName=$1
5
6 if pgrep -x $processName >/dev/null
7 then
8 echo $processName
9 fi
10}
11
12hasNFD=$(hasProcess nfd)
13hasNRD=$(hasProcess nrd)
14
15if [[ -n $hasNFD$hasNRD ]]
16then
17 echo 'NFD or NRD is already running...'
18 exit 1
19fi
20
21sudo nfd &
22sleep 2
23nrd &
24sleep 2