add pid save

This commit is contained in:
encrypt 2015-03-31 19:18:12 +02:00
parent a6885453dc
commit fa944fb2ba

View file

@ -46,6 +46,8 @@ trap 'load_config' 1
load_config
echo $$ > /var/run/etherswitch.pid
while :
do
swconfig dev $device port $port show | grep -q "up"