summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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