Files
BPI-CM9-Linux/aml-comp/prebuilt/hosttools/aml-swupdate/a4/ramdisk/etc/hotplug/insert.sh
T
2026-08-24 10:03:24 +08:00

11 lines
192 B
Bash
Executable File

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