summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-13 06:19:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-13 06:19:19 +0000
commitf4bc6af969568a6698d0e8d888f55a0d54ee78c4 (patch)
tree541c17bf3e6acf330d54887b93c7e2801e01258f /etc/rc.linkup
parent57b6661794bd342f9ea6bdc8010dea3e90b4fb96 (diff)
downloadpfsense-f4bc6af969568a6698d0e8d888f55a0d54ee78c4.zip
pfsense-f4bc6af969568a6698d0e8d888f55a0d54ee78c4.tar.gz
Move /tmp/rc.linkup unlink operation into rc.linkup
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