Initial set of scripts
This commit is contained in:
31
Bash Scripts/format-buddy.sh
Executable file
31
Bash Scripts/format-buddy.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
while [ 1=1 ];do
|
||||
|
||||
clear
|
||||
|
||||
echo "[1] - Format device as Fat32"
|
||||
echo
|
||||
echo -n ">>: "
|
||||
read choice
|
||||
|
||||
|
||||
if [ "$choice" = "1" ];then
|
||||
echo
|
||||
lsblk
|
||||
echo
|
||||
echo -n "Type full path to device (/dev/xx1): "
|
||||
read device
|
||||
|
||||
mkfs.fat -F32 -v -l -n $device
|
||||
|
||||
|
||||
|
||||
|
||||
else
|
||||
echo "Fuck....."
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user