add pid save
This commit is contained in:
parent
a6885453dc
commit
fa944fb2ba
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ trap 'load_config' 1
|
||||||
|
|
||||||
load_config
|
load_config
|
||||||
|
|
||||||
|
echo $$ > /var/run/etherswitch.pid
|
||||||
|
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
swconfig dev $device port $port show | grep -q "up"
|
swconfig dev $device port $port show | grep -q "up"
|
||||||
|
|
Loading…
Reference in a new issue