]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/blobdiff - test
Added test script
[shark/motorek-5200.git] / test
diff --git a/test b/test
new file mode 100755 (executable)
index 0000000..fd5443c
--- /dev/null
+++ b/test
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+cp motorek.ko ../root-shark/home
+
+#grep -q /home /proc/mounts || mount -t nfs -o nolock 147.32.86.187:/home/wsh/ppc/MPC5200/motorek /home;
+ssh -t root@147.32.86.130 '
+grep -q /lib/modules /proc/mounts || mount -t tmpfs none /lib/modules;
+mkdir -p /lib/modules/`uname -r`;
+
+rmmod motorek;
+rm /lib/modules/`uname -r`/*;
+cp /home/motorek.ko /lib/modules/`uname -r`;
+depmod;
+modprobe motorek;
+MDEV=`ls -d /sys/devices/motorek|head`
+echo "echo 50 > $MDEV/action"
+echo 50 > $MDEV/action
+/bin/sh -l
+'