X-Git-Url: https://rtime.felk.cvut.cz/gitweb/shark/motorek-5200.git/blobdiff_plain/711f4f9a3ccbcee90b39803ea763c8b3f21ad376..84430d93e686f77240123caa2c8d5a5ef4f19a07:/test diff --git a/test b/test new file mode 100755 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 +'