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 $?

}

댓글 없음:

댓글 쓰기

도커 내부의 hosts에 주소 추가하기

echo "192.168.10.19 happycpu-P620.local" | sudo tee -a /etc/hosts