I am trying to write a script to automate some testing, and the fist step is connect to my device and update the /lib/modules/ directory with the recent version of a device driver on my host. That is I need to push the updated file from my host machine to the phone. Here is what I have:
#!/bin/sh
adb shell mount | grep -e "modules"
echo
adb shell "su -c 'mount -o remount, rw /lib/modules/'"
echo
adb shell mount | grep -e "modules"
echo
But the above does not work, and I do not know how to get more information about it. Here is the output I get: mount: Invalid argument
I am also not able to update the phone with the most recent file.
I have updated my original post and the answer. I hope that helps explain how I resolved the issue, and perhaps shed light on what is outstanding.
mount -o remount,rw /lib/modules
without the space after the comma. – G-Man Oct 2 at 0:09