From fa944fb2ba018a98470a25a8ae83a5f362ec1a68 Mon Sep 17 00:00:00 2001 From: encrypt Date: Tue, 31 Mar 2015 19:18:12 +0200 Subject: [PATCH] add pid save --- etherswitch | 2 ++ 1 file changed, 2 insertions(+) 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"