summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.initial.firmware_update4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update
index 749207e..8bb6a7b 100755
--- a/etc/rc.initial.firmware_update
+++ b/etc/rc.initial.firmware_update
@@ -36,6 +36,8 @@ switch ($command) {
case "1":
echo "\nEnter the URL to the .tgz update file:\n> ";
$url = chop(fgets($fp));
+ if(!$url)
+ die;
$status = does_url_exist($url);
if($status) {
echo "\nFetching file...\n";
@@ -65,6 +67,8 @@ switch ($command) {
case "2":
echo "\nEnter the complete path to the .tgz update file: ";
$path = chop(fgets($fp));
+ if(!$path)
+ die;
if(file_exists($path)) {
do_upgrade($path);
} else {
OpenPOWER on IntegriCloud