mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-11 19:48:45 +01:00
UBIFS
This commit is contained in:
parent
75a9ee969d
commit
f9f41e0655
2 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@
|
|||
JUCI.app
|
||||
.controller("SettingsUpgradeCtrl", function($scope, $config, $uci, $rpc, gettext){
|
||||
$scope.sessionID = $rpc.$sid();
|
||||
$scope.uploadFilename = "/tmp/uploads/firmware.bin";
|
||||
$scope.uploadFilename = "/tmp/firmware.bin";
|
||||
$scope.usbFileName = "()";
|
||||
|
||||
$scope.config = $config;
|
||||
|
|
|
|||
|
|
@ -1039,7 +1039,7 @@ rpc_luci2_upgrade_test(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
struct ubus_request_data *req, const char *method,
|
||||
struct blob_attr *msg)
|
||||
{
|
||||
const char *cmd[4] = { "sysupgrade", "--test", "/tmp/uploads/firmware.bin", NULL };
|
||||
const char *cmd[4] = { "sysupgrade", "--test", "/tmp/firmware.bin", NULL };
|
||||
return ops->exec(cmd, NULL, NULL, NULL, NULL, NULL, ctx, req);
|
||||
}
|
||||
|
||||
|
|
@ -1049,7 +1049,7 @@ rpc_luci2_upgrade_start(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
struct blob_attr *msg)
|
||||
{
|
||||
char fwpath[255];
|
||||
strcpy(fwpath, "/tmp/uploads/firmware.bin");
|
||||
strcpy(fwpath, "/tmp/firmware.bin");
|
||||
|
||||
//const char *keep = "";
|
||||
|
||||
|
|
@ -1074,7 +1074,7 @@ rpc_luci2_upgrade_clean(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
struct ubus_request_data *req, const char *method,
|
||||
struct blob_attr *msg)
|
||||
{
|
||||
if (unlink("/tmp/uploads/firmware.bin"))
|
||||
if (unlink("/tmp/firmware.bin"))
|
||||
return rpc_errno_status();
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue