hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1.01k stars 173 forks source link

WIP: Recognize write protection on Linux #32

Closed StefanScherer closed 8 years ago

StefanScherer commented 8 years ago

This helps Linux users and recognizes write protected SD cards. Someone has to test this on Linux.

Fixes #16

StefanScherer commented 8 years ago

Rebased and fixed the PR, now check eg. /dev/sdb in /etc/mtab instead of ls -l /dev/sdb which always shows "rw".