16 lines
275 B
Bash
16 lines
275 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
case $1 in
|
||
|
-m)
|
||
|
mkdir /media/floppy1
|
||
|
mount -o loop $2 /media/floppy1/
|
||
|
echo "Done." ;;
|
||
|
-u)
|
||
|
umount /media/floppy1/
|
||
|
rm -r /media/floppy1/
|
||
|
echo "Done." ;;
|
||
|
*)
|
||
|
echo "Usage: sudo floppy_mount [-m/-u] floppy_image.img\n" ;;
|
||
|
|
||
|
esac
|