Skip to content

Commit

Permalink
document another GPS::BBBikeGPS::MountedDevice usage
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Feb 17, 2018
1 parent c13fe18 commit 4656e61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPS/BBBikeGPS/MountedDevice.pm
Expand Up @@ -664,6 +664,10 @@ Or for the first partition on a card:
perl -w -Ilib -MGPS::BBBikeGPS::MountedDevice -e 'GPS::BBBikeGPS::MountedDevice->maybe_mount(sub { my $dir = shift; system("ls", "-al", $dir); 1 }, garmin_disk_type => "card")'
Or starting a shell in the mounted directory:
perl -w -Ilib -MGPS::BBBikeGPS::MountedDevice -e 'GPS::BBBikeGPS::MountedDevice->maybe_mount(sub { my $dir = shift; chdir $dir; system($ENV{SHELL}); chdir "/"; 1 })'
The mount rule is: if the device is already mounted, then don't
unmount at the end. If the device is not mounted, then unmount after
the callback.
Expand Down

0 comments on commit 4656e61

Please sign in to comment.