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

}

댓글 없음:

댓글 쓰기

암호화 + base64 하고 쉘스크립트.

 #!/bin/bash # IV와 UserKey를 설정합니다 (아스키 문자열을 그대로 사용). IV="0123456789abcdef"  UserKey="0123456789abcdef" # IV와 UserKey를 16...