3 make install INSTALL_PATH=inst
4 make modules_install INSTALL_MOD_PATH=inst
5 tar cfz inst.tar.gz inst
6 scp inst.tar.gz root@$1:/tmp
7 echo "Expanding and installing..."
8 ssh root@$1 "cd /tmp;tar xvfz inst.tar.gz"
9 ssh root@$1 "cp -R /tmp/inst/lib/* /lib/"
10 ssh root@$1 "rm -fR /tmp/inst/lib; mv /tmp/inst/* /boot"
11 echo "Rebooting in 5 seconds..."