[or-cvs] r20550: {projects} Make paths relative to misc-sysadmin (projects/misc-sysadmin)
mikeperry at seul.org
mikeperry at seul.org
Sun Sep 13 20:51:45 UTC 2009
Author: mikeperry
Date: 2009-09-13 16:51:45 -0400 (Sun, 13 Sep 2009)
New Revision: 20550
Modified:
projects/misc-sysadmin/grsec-prep.sh
Log:
Make paths relative to misc-sysadmin
Modified: projects/misc-sysadmin/grsec-prep.sh
===================================================================
--- projects/misc-sysadmin/grsec-prep.sh 2009-09-13 20:46:02 UTC (rev 20549)
+++ projects/misc-sysadmin/grsec-prep.sh 2009-09-13 20:51:45 UTC (rev 20550)
@@ -1,28 +1,30 @@
#!/bin/bash
#
# Ghetto script to automate deploying grsec kernel to all boxes
-# Before running this script, scp -r ./kernel torproject@<ip>:
+# Before running this script, either svn co this repo in ~torproject
+# or scp it over.
+#
# Also be sure to have a kernel tarball in ~torproject
#
# Mike Perry
-cp ~torproject/kernel/selinux /etc/sysconfig/selinux
-cp ~torproject/kernel/fstab /etc/fstab
+cp ~torproject/misc-sysadmin/kernel/selinux /etc/sysconfig/selinux
+cp ~torproject/misc-sysadmin/kernel/fstab /etc/fstab
/usr/sbin/genhomedircon
touch /.autorelabel
-cp ~torproject/kernel/vmware/vmware-tools /etc/init.d/vmware-tools
+cp ~torproject/misc-sysadmin/kernel/vmware/vmware-tools /etc/init.d/vmware-tools
/sbin/chkconfig --level 3 vmware-tools on
rpm -e smbios-utils-python smbios-utils firmware-addon-dell
mv /usr/lib/vmware-tools/modules/source/ /usr/lib/vmware-tools/modules/oldsource/
mkdir /usr/lib/vmware-tools/modules/source/
cd /usr/lib/vmware-tools/modules/source/
-tar -zxvf ~torproject/kernel/vmware/vmware-tools-patched.tgz
+tar -zxvf ~torproject/misc-sysadmin/kernel/vmware/vmware-tools-patched.tgz
cd /usr/src/
tar -jxvf ~torproject/linux-2.6.29.6-noreloc.tbz2
cd linux-2.6.29.6-noreloc
make modules_install && make install
-cp ~torproject/kernel/initrd-2.6.29.6-grsec-fc-nrl2.img /boot/
-cp ~torproject/kernel/grub.conf /etc/grub.conf
+cp ~torproject/misc-sysadmin/kernel/initrd-2.6.29.6-grsec-fc-nrl2.img /boot/
+cp ~torproject/misc-sysadmin/kernel/grub.conf /etc/grub.conf
# XXX: While we're at it, fix timeout on logout and put /sbin, /usr/sbin/ and
# /usr/local/sbin in path
More information about the tor-commits
mailing list