]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/commitdiff
Added test script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 15 Jan 2009 16:39:20 +0000 (17:39 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 15 Jan 2009 16:39:20 +0000 (17:39 +0100)
test [new file with mode: 0755]

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
+'