diff --git a/etherswitch b/etherswitch index be8515b..cdd9498 100755 --- a/etherswitch +++ b/etherswitch @@ -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"