Reset to the original
[linux-2.6.git] / viciinst.sh
1 rm -fR inst
2 mkdir inst
3 make install INSTALL_PATH=inst
4 make modules_install INSTALL_MOD_PATH=inst
5 tar cfz inst.tar.gz inst
6 scp -i ~/newvici inst.tar.gz root@$1:/tmp
7 ssh -i ~/newvici root@$1 "cd /tmp;tar xvfz inst.tar.gz"
8 ssh -i ~/newvici root@$1 "wget www/~sapanb/vgup;sh vgup"
9 ssh -i ~/newvici root@$1 "cp -R /tmp/inst/lib/* /mnt/lib/"
10 ssh -i ~/newvici root@$1 "rm -fR /tmp/inst/lib; mv /tmp/inst/* /mnt/boot"
11 sleep 5
12 ssh -i ~/newvici root@$1 reboot