Joey Hess
d35132810a
Got removable media mount detection working on Android.
...
Bionic has an amusing stub for `getmntent` that prints out
"FIX ME! implement getmntent()"
But, `/proc/mounts` is there, so I just parse it.
2013-05-04 16:19:25 -04:00
Joey Hess
f87a781aa6
finished where indentation changes
2012-12-13 00:24:19 -04:00
Joey Hess
e125ce74b8
work toward adding new repos on removable drives
...
This actually does add a new repo, but it doesn't yet set up
remotes, or sync to it.
2012-08-04 18:17:16 -04:00
Joey Hess
f6d4786b86
left unsafe imports here; added a comment with a rationalle
2012-07-20 15:07:48 -04:00
Joey Hess
0496a3971d
store whole Mntents
...
This way, if a mount point was already mounted, but something else
gets mounted there, it'll be seen as a new mount.
2012-07-19 21:25:26 -04:00
Joey Hess
107a7b9388
try to make Utility.Mounts portable
...
This is an unholy mashup, but it just might work. It works on Linux,
that's all I've tested. :)
2012-07-19 20:38:58 -04:00
Joey Hess
e2c86a4b58
extacted Mounts.hsc from hsshellscript
...
Converted from using c2hs to using hsc2hs, just because other code
in git-annex uses hsc2hs.
Various cleanups.
This code is LGPLed, so I had to include that licence.
2012-07-19 12:53:39 -04:00