summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-05-26 06:26:46 -0400
committerAnthony G. Basile <blueness@gentoo.org>2011-05-26 06:26:46 -0400
commit2bab800162de53d9175070d4cfeccfb56034fc69 (patch)
tree20d589ce114c26da54ac77d3a76ce3889700055a /scripts
parentEOF 2.6.38 (diff)
downloadhardened-patchset-2bab800162de53d9175070d4cfeccfb56034fc69.tar.gz
hardened-patchset-2bab800162de53d9175070d4cfeccfb56034fc69.tar.bz2
hardened-patchset-2bab800162de53d9175070d4cfeccfb56034fc69.zip
scripts/switchout.sh: remove old grsec patch, rename new, update README
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/switchout.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/switchout.sh b/scripts/switchout.sh
new file mode 100755
index 0000000..a3ded86
--- /dev/null
+++ b/scripts/switchout.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+OLD="$(ls 4420_*)"
+NEW="$(ls grsecurity-*)"
+NNEW="4420_$NEW"
+
+sed -i -e "s:${OLD}:${NNEW}:" 0000_README
+
+mv $NEW $NNEW
+rm $OLD