//------------------------------------------------------------------------------ // Licensed Materials - Property of IBM // (c) Copyright IBM Corporation 2001,2002 All Rights Reserved. // US Government Users Restricted Rights - Use, duplication or disclosure // restricted by GSA ADP Schedule Contract with IBM Corp. //------------------------------------------------------------------------------ // Library Firmware Update // // Filename: sl_firmware.htm // // This file initiates requests to update the library firmware. // // Input: none // // Ouput: POST ('form_out') // url original request page // softwareUpdate library firmware image // // // Change History: // // Date Defect Changed By Description of Change // ---- ------ ---------- --------------------- // 07/21/2005 rwinston File Created // 08/20/2005 rwinston Removed check for post data // //------------------------------------------------------------------------------ include_once('common_admin_inc.htm'); include('utils_inc.htm'); // intitalize variables $errorCode = 0; $displayMessage = 0; $descriptions = get_firmware_versions($user); $product_info = get_product_info($user); //$netConfig = get_network_configuration($user); $netConfig = get_network_configuration_ipv4($user); $diskSpace = disk_free_space("/home/embedded/library/upload"); error_log("Free Diskspace for Firmware upload is: ". $diskSpace ); // if this is a post, then it is the return from an operation // retrieve the return information if ($_SERVER['REQUEST_METHOD'] == "POST") { $errorCode = $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; } $sessionTimeout = get_session_timeout($user); $sRet = system("/usr/bin/cmdwrap -NO_END_OF_FILE /home/embedded/library/DiskSpaceClean.sh > /dev/null 2>&1", $iRet); error_log("Call to cmdwrap DiskSpaceClean.sh returned a \"$iRet\" and the output was \"$sRet\""); $diskSpace = disk_free_space("/home/embedded/library/upload"); error_log("NEW - Free Diskspace for Firmware upload is: ". $diskSpace ); ?>