- Code: Select all
#!/usr/bin/sh
#
# Pocketsize1 is ext4
if [ -d /run/media/louielouie/Pocketsize1/Mageia4 ]; then
cd /run/media/louielouie/Pocketsize1/Mageia4
lftp -e 'open mirrors.kernel.org/mageia/distrib/4/x86_64/media &&
mirror core core &&
mirror nonfree nonfree &&
mirror tainted tainted &&
exit'
cd
# Pocketsize2 is ntfs
elif [ -d /run/media/louielouie/Pocketsize2/Mageia4 ]; then
cd /run/media/louielouie/Pocketsize2/Mageia4
lftp -e 'open mirrors.kernel.org/mageia/distrib/4/x86_64/media &&
mirror core core &&
mirror nonfree nonfree &&
mirror tainted tainted &&
exit'
cd
else
echo "Directory does not exist"
fi
When trying to add 'local files' I get this error:
"Unable to add medium, errors reported:
genhdlist2 failed on /run/media/louielouie/Pocketsize1/Mageia4/"
What am I missing?
'tanx