2019-02-17 18:22:29 +01:00
|
|
|
#!/bin/bash
|
2019-12-11 00:44:07 +01:00
|
|
|
|
|
|
|
if [[ "$1" == "es" ]]
|
|
|
|
then
|
|
|
|
for disk in /dev/sd?
|
|
|
|
do
|
2019-12-11 00:49:58 +01:00
|
|
|
[[ "$disk" == "/dev/sda" ]] && continue
|
2019-12-11 00:44:07 +01:00
|
|
|
echo '${voffset 2}Lecture '$(basename $disk)' ${diskio_read '$(basename $disk)'}${goto 140}Écriture '$(basename $disk)' ${diskio_write '$(basename $disk)'}'
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for dir in /run/media/breizh/*
|
|
|
|
do
|
|
|
|
[[ -d "$dir" ]] && echo -e "\${template3 $dir $(basename $dir)}\n\n"
|
|
|
|
done
|
|
|
|
fi
|