2023-01-05

표현좋군.


mount_usb() {
found=0
for i in /dev/sda?;do
if [ $i == "/dev/sda?" ];then
break
fi
mount $i ${USB} 2>/dev/null

if [ $? != 0 ];then
continue
fi

return 0
done

# Try to mount a USB without partition table
mount /dev/sda ${USB} 2>/dev/null
return $?

}

댓글 없음:

댓글 쓰기

How to Convert EUC-KR Source Code to UTF-8

How to Convert EUC-KR Source Code to UTF-8 I found old STM32 firmware code. The files were in EUC-KR encoding. This is an old Korean text f...