summaryrefslogtreecommitdiffstats
path: root/target/device/KwikByte/kb9202/target_skeleton/sbin
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2008-07-03 08:27:50 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2008-07-03 08:27:50 +0000
commite27fef51834042a1b108e04927a2a91742a54327 (patch)
treefd0179bb0da69ac3d7c69f7aac2f8c9ef7cb961a /target/device/KwikByte/kb9202/target_skeleton/sbin
parent41e6a671f3cc284da7dc32eb96e257265d233893 (diff)
downloadbuildroot-novena-e27fef51834042a1b108e04927a2a91742a54327.tar.gz
buildroot-novena-e27fef51834042a1b108e04927a2a91742a54327.zip
Add support for KwikByte KB9202 board, courtesy Brian Beattie
Diffstat (limited to 'target/device/KwikByte/kb9202/target_skeleton/sbin')
-rwxr-xr-xtarget/device/KwikByte/kb9202/target_skeleton/sbin/automount.script21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/device/KwikByte/kb9202/target_skeleton/sbin/automount.script b/target/device/KwikByte/kb9202/target_skeleton/sbin/automount.script
new file mode 100755
index 000000000..facce6073
--- /dev/null
+++ b/target/device/KwikByte/kb9202/target_skeleton/sbin/automount.script
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+if [ x$ACTION = "x" ] ; then
+ echo "$0: should be called by mdev"
+ exit -1
+fi
+
+if [ $ACTION = "remove" ] ; then
+ umount -f /dev/$MDEV
+ rmdir /disk/$MDEV
+ exit 0
+fi
+
+if [ $ACTION = "add" ] ; then
+ mkdir -p /disk/$MDEV
+ mount -o sync /dev/$MDEV /disk/$MDEV
+ exit 0
+fi
+
+echo "$0: $ACTION=ACTION not recognized" > /dev/console
+env > /dev/console