3 ms·
I use this bash script to a umount with a shortcut key. Using KDE. (bad formatting in hn) #!/bin/bash
by whyagaindavid 11y ago
I use this bash script to a umount with a shortcut key. Using KDE. (bad formatting in hn)
#!/bin/bash
for i in `ls /media/$USER`
do
cd /media/$USER
umount $i
done
ls /media/$USER |grep -v cdrom0 |grep -v cdrom> /tmp/disk_status
file=/tmp/disk_status
if [ ! -s $file ]; then
kdialog --passivepopup "Nothing Mounted " 1
else
kdialog --passivepopup "Mounted devices: `cat /tmp/disk_status`" 2
fi