diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2011-05-26 06:26:46 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2011-05-26 06:26:46 -0400 |
commit | 2bab800162de53d9175070d4cfeccfb56034fc69 (patch) | |
tree | 20d589ce114c26da54ac77d3a76ce3889700055a | |
parent | EOF 2.6.38 (diff) | |
download | hardened-patchset-2bab800162de53d9175070d4cfeccfb56034fc69.tar.gz hardened-patchset-2bab800162de53d9175070d4cfeccfb56034fc69.tar.bz2 hardened-patchset-2bab800162de53d9175070d4cfeccfb56034fc69.zip |
scripts/switchout.sh: remove old grsec patch, rename new, update README
-rwxr-xr-x | scripts/switchout.sh | 10 |
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 |