yeets my yotes ya know
This commit is contained in:
1 parent
e26830fd40
commit
f4d083bc3e
5 files changed
+47
-2
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# pick out the drive but not sda because thats the main drive
|
||||
choice=`lsblk -lp | \
|
||||
grep 'disk $' | awk '{print $1, $4}' | grep -v 'sda' | \
|
||||
dmenu -i -p 'Drive to mount'`
|
||||
dev=`echo $choice | awk '{print $1}'`
|
||||
if [ -z "$dev" ];then exit 0;fi
|
||||
# Finally we can mount the thing
|
||||
mkdir -p "/mnt/`basename $dev`"
|
||||
mount "$dev" "$name"
|
||||
Reference in new issue
Block a user