Close STDIN ($fp) handle before returning back to shell. Major doh's.

This commit is contained in:
Scott Ullrich 2007-06-02 22:21:01 +00:00
parent 9c51b6f6bb
commit 119cd3afac
2 changed files with 5 additions and 2 deletions

View File

@ -1308,6 +1308,7 @@ EOD;
echo "\nEnter the LAN interface name or 'a' for auto-detection: ";
$lanif = chop(fgets($fp));
if ($lanif === "") {
fclose($fp);
return;
}
@ -1381,7 +1382,7 @@ EOD;
Error: you cannot assign the same interface name twice!
EOD;
fclose($fp);
return;
}
}
@ -1453,6 +1454,8 @@ EOD;
EOD;
fclose($fp);
if($g['booting'])
return;

View File

@ -85,5 +85,5 @@
echo "done.\n";
echo "\nYour configuration has been moved to {$move_config_to_device}\n";
touch("/tmp/config_moved");
fclose($fp);
?>