Files
BPI-CM9-Linux/aml-comp/prebuilt/hosttools/aml-swupdate/a4/ramdisk/etc/hotplug/insert.sh
T

11 lines
192 B
Bash
Raw Normal View History

2026-08-13 11:28:40 +08:00
if [ -n "$1" ]; then
if [ -b /dev/$1 ]; then
if [ ! -d /media ]; then
mkdir -p /media
fi
mount /dev/$1 /media
if [ $? -ne 0 ]; then
rm -rf /media
fi
fi
fi