brightio / penelope

Penelope Shell Handler
GNU General Public License v3.0
677 stars 93 forks source link

Fix upload not working when the agent cannot be deployed #22

Closed save196 closed 2 months ago

save196 commented 7 months ago

When the agent cannot be deployed the upload command fails as remote_block_size is not set. This commit sets remote_block_size to 1 by default.

save196 commented 7 months ago

Updated the df command used in file upload to use -k (sets the block size to 1024 bytes) instead of --block-size. This improve compatibility with other versions of df, like BusyBox and Toybox implementations that do not support --block-size.

brightio commented 2 months ago

Updated the df command used in file upload to use -k (sets the block size to 1024 bytes) instead of --block-size. This improve compatibility with other versions of df, like BusyBox and Toybox implementations that do not support --block-size.

-k is not equivalent to -B 1 so I will need to change some more code