Open dydgns2017 opened 5 years ago
if [ ! -n "$1" ] then echo "Error, input the Raspberry Pi SD" \ " card Device information ex) \ sudo bash $(basename $0) /dev/sdb" && exit 1 fi
mountCheck=$(mount -l | grep $piDev | grep boot | awk {'print $2'})
used=$(df -k | grep media/pi | awk {'print $3'})
df -i /media/pi
better then recently code
if [ ! -n "$1" ] then echo "Error, input the Raspberry Pi SD" \ " card Device information ex) \ sudo bash $(basename $0) /dev/sdb" && exit 1 fi
Error Fix
mountCheck=$(mount -l | grep $piDev | grep boot | awk {'print $2'})
Error Fix
used=$(df -k | grep media/pi | awk {'print $3'})
inode data..
df -i /media/pi