summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index a26186a..bd50337 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -40,8 +40,11 @@
$processing = true;
$counter = 1;
while($processing == true) {
- if($argv[$counter] == "" or $argv[$counter] == "\n")
+ if($argv[$counter] == "" or $argv[$counter] == "\n") {
+ if(file_exists("/tmp/rc.linkup"))
+ unlink("/tmp/rc.linkup");
exit;
+ }
echo "Processing {$argv[$counter]} - {$argv[$counter+1]}\n";
$friendly_interface = convert_real_interface_to_friendly_interface_name($argv[$counter]);
if($config['interfaces'][$friendly_interface]['ipaddr'] <> "dhcp" and
OpenPOWER on IntegriCloud