Closed edineshkumar closed 2 years ago
If redirected media instance was mounted in host machine, following shell command is failing by sh: write error: Device or resource busy.
cd /{gadget_path} ; echo > functions/mass_storage.usb0/lun.0/file
If the media instance was not mounted in host machine, then there is nothing issue. echo command is succeeded.
echo
My need is, echo command should success in both (with/without mount) cases.
Anyone can suggest me to achieve this?
If redirected media instance was mounted in host machine, following shell command is failing by sh: write error: Device or resource busy.
cd /{gadget_path} ; echo > functions/mass_storage.usb0/lun.0/file
If the media instance was not mounted in host machine, then there is nothing issue.
echo
command is succeeded.My need is,
echo
command should success in both (with/without mount) cases.Anyone can suggest me to achieve this?