general pastebin - Untitled - post number 12651

June 7, 2005

general pastebin - Untitled - post number 12651
#
mmc_mount=/mmc
#

#
[ -f /tmp/mmc-status ] || [ touch /tmp/mmc-status; echo 0 > /tmp/mmc-status ]
#

#
mmc_present=`cat /tmp/mmc-status`
#
if (test $1) then
#
if (test $1 = “insert”) then
#
if (test “$mmc_present” != “1″) then
#
insmod -q fat.o
#
insmod -q vfat.o
#
insmod -q mmc.o
#
mkdir -p /mmc
#
sleep 1
#
mount /dev/mmc/disc0/part1 $mmc_mount
#
echo $mmc_present
#
$mmc_present=1
#
echo $mmc_present > /tmp/mmc-status
#
echo $mmc_present
#
echo “MMC Card mounted at $mmc_mount”
#
else
#
echo “MMC Card already present!”
#
fi
#
elif (test $1 = “eject”) then
#
if (test “$mmc_present” != “0″) then
#
umount $mmc_mount && rmdir $mmc_mount
#
rmmod mmc.o
#
rmmod vfat.o
#
rmmod fat.o
#
echo $mmc_present
#
mmc_present=0
#
echo $mmc_present > /tmp/mmc-status
#
echo $mmc_present
#
echo “MMC Card unmounted from”
#
else
#
echo “MMC Card not present!”$mmc_mount”
#
fi
#
else
#
echo “Usage: mmc
#
fi
#
else
#
echo “Usage: mmc

#
fi

Memory Card Adapter Manufacturers and Memory Card Adapter Suppliers

Memory Card Adapter Manufacturers and Memory Card Adapter Suppliers
Memory Card Adapter Manufacturers and Suppliers for Export

Download details: Script Debugger for Windows NT 4.0, 2000, and XP

Download details: Script Debugger for Windows NT 4.0, 2000, and XP
Script Debugger for Windows NT 4.0, 2000, and XP